Skip to content

Commit

Permalink
ESlint fix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ChavdaSachin committed Sep 26, 2024
1 parent eeb3137 commit 80bed26
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ function WorkspaceCategoriesPage({route}: WorkspaceCategoriesPageProps) {
return;
}
setSelectedCategories({});
// eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps
}, [isFocused]);

const categoryList = useMemo<PolicyOption[]>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ function PolicyDistanceRatesPage({
return;
}
setSelectedDistanceRates([]);
// eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps
}, [isFocused]);

const distanceRatesList = useMemo<RateForList[]>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function WorkspaceReportFieldsPage({
return;
}
setSelectedReportFields([]);
// eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps
}, [isFocused]);

const reportFieldsSections = useMemo(() => {
Expand Down
1 change: 1 addition & 0 deletions src/pages/workspace/tags/WorkspaceTagsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ function WorkspaceTagsPage({route}: WorkspaceTagsPageProps) {
return;
}
setSelectedTags({});
// eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps
}, [isFocused]);

const getPendingAction = (policyTagList: PolicyTagList): PendingAction | undefined => {
Expand Down
1 change: 1 addition & 0 deletions src/pages/workspace/taxes/WorkspaceTaxesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function WorkspaceTaxesPage({
return;
}
setSelectedTaxesIDs([]);
// eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps
}, [isFocused]);

const textForDefault = useCallback(
Expand Down

0 comments on commit 80bed26

Please sign in to comment.