Skip to content

Commit 13e89dc

Browse files
committed
🚨(react) fix select mono stories
- remove unused error var
1 parent ab61478 commit 13e89dc

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

‎packages/react/src/components/Forms/Select/mono.stories.tsx‎

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)