File tree Expand file tree Collapse file tree
packages/react/src/components/Forms/Select Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,13 +190,9 @@ export const SearchableUncontrolledWithAsyncOptionsFetching = () => {
190190 let arrayOptions : Option [ ] = [ ] ;
191191
192192 setIsLoading ( true ) ;
193- try {
194- context . search = isInitialOptionFetching ? "" : context . search ;
195- arrayOptions = await fetchOptions ( context , OPTIONS , 1000 ) ;
196- setIsInitialOptionFetching ( false ) ;
197- } catch ( error ) {
198- /* empty */
199- }
193+ context . search = isInitialOptionFetching ? "" : context . search ;
194+ arrayOptions = await fetchOptions ( context , OPTIONS , 1000 ) ;
195+ setIsInitialOptionFetching ( false ) ;
200196
201197 setIsLoading ( false ) ;
202198 return arrayOptions ;
@@ -224,13 +220,9 @@ export const SearchableUncontrolledWithAsyncOptionsFetchingAndDefaultValue =
224220 let arrayOptions : Option [ ] = [ ] ;
225221
226222 setIsLoading ( true ) ;
227- try {
228- context . search = isInitialOptionFetching ? "" : context . search ;
229- arrayOptions = await fetchOptions ( context , OPTIONS , 1000 ) ;
230- setIsInitialOptionFetching ( false ) ;
231- } catch ( error ) {
232- /* empty */
233- }
223+ context . search = isInitialOptionFetching ? "" : context . search ;
224+ arrayOptions = await fetchOptions ( context , OPTIONS , 1000 ) ;
225+ setIsInitialOptionFetching ( false ) ;
234226
235227 setIsLoading ( false ) ;
236228 return arrayOptions ;
You can’t perform that action at this time.
0 commit comments