Skip to content

Commit

Permalink
🚨(react) fix select mono stories
Browse files Browse the repository at this point in the history
- remove unused error var
  • Loading branch information
daproclaima committed Sep 24, 2024
1 parent ab61478 commit 13e89dc
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions packages/react/src/components/Forms/Select/mono.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,9 @@ export const SearchableUncontrolledWithAsyncOptionsFetching = () => {
let arrayOptions: Option[] = [];

setIsLoading(true);
try {
context.search = isInitialOptionFetching ? "" : context.search;
arrayOptions = await fetchOptions(context, OPTIONS, 1000);
setIsInitialOptionFetching(false);
} catch (error) {
/* empty */
}
context.search = isInitialOptionFetching ? "" : context.search;
arrayOptions = await fetchOptions(context, OPTIONS, 1000);
setIsInitialOptionFetching(false);

setIsLoading(false);
return arrayOptions;
Expand Down Expand Up @@ -224,13 +220,9 @@ export const SearchableUncontrolledWithAsyncOptionsFetchingAndDefaultValue =
let arrayOptions: Option[] = [];

setIsLoading(true);
try {
context.search = isInitialOptionFetching ? "" : context.search;
arrayOptions = await fetchOptions(context, OPTIONS, 1000);
setIsInitialOptionFetching(false);
} catch (error) {
/* empty */
}
context.search = isInitialOptionFetching ? "" : context.search;
arrayOptions = await fetchOptions(context, OPTIONS, 1000);
setIsInitialOptionFetching(false);

setIsLoading(false);
return arrayOptions;
Expand Down

0 comments on commit 13e89dc

Please sign in to comment.