Skip to content

Commit

Permalink
fix: minor code positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGhadyani-Okta committed Jun 22, 2023
1 parent 87fcbcc commit e2a58ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/odyssey-react-mui/src/PaginatedDataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ const PaginatedDataGrid = <TData extends DefaultMaterialReactTableData>({
}
}, [globalFilter, onGlobalFilterChange]);

const totalFetchedRows = data.length ?? 0;

useEffect(() => {
try {
// Scroll to top of table when sorting or filters change.
Expand All @@ -99,6 +97,8 @@ const PaginatedDataGrid = <TData extends DefaultMaterialReactTableData>({
}
}, [columnFilters, globalFilter]);

const totalFetchedRows = data.length ?? 0;

const renderBottomToolbarCustomActions = useCallback(
() =>
fetchMoreData ? (
Expand Down

0 comments on commit e2a58ad

Please sign in to comment.