Skip to content

Commit

Permalink
Apply ag-grid migrations
Browse files Browse the repository at this point in the history
Signed-off-by: Simeon Widdis <[email protected]>
  • Loading branch information
Swiddis committed Mar 21, 2024
1 parent 11ad572 commit cfacd0a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ export const DataTable = ({ visualizations, layout, config }: any) => {
const onPageSizeChanged = useCallback(
(val: number) => {
setPageSize(val);
gridRef.current.api.paginationSetPageSize(val);
gridRef.current.api.setGridOption("paginationPageSize", val);

Check failure on line 134 in public/components/visualizations/charts/data_table/data_table.tsx

View workflow job for this annotation

GitHub Actions / Lint

Replace `"paginationPageSize"` with `'paginationPageSize'`

Check warning on line 134 in public/components/visualizations/charts/data_table/data_table.tsx

View check run for this annotation

Codecov / codecov/patch

public/components/visualizations/charts/data_table/data_table.tsx#L134

Added line #L134 was not covered by tests
setActivePage(0);
gridRef.current.api.paginationGoToPage(0);
if (isFullScreen) {
gridRefFullScreen.current.api.paginationSetPageSize(val);
gridRefFullScreen.current.api.setGridOption("paginationPageSize", val);

Check failure on line 138 in public/components/visualizations/charts/data_table/data_table.tsx

View workflow job for this annotation

GitHub Actions / Lint

Replace `"paginationPageSize"` with `'paginationPageSize'`

Check warning on line 138 in public/components/visualizations/charts/data_table/data_table.tsx

View check run for this annotation

Codecov / codecov/patch

public/components/visualizations/charts/data_table/data_table.tsx#L138

Added line #L138 was not covered by tests
gridRefFullScreen.current.api.paginationGoToPage(0);
}
},
Expand Down

0 comments on commit cfacd0a

Please sign in to comment.