Skip to content

Commit

Permalink
fix issue with pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwizp committed Jul 17, 2020
1 parent fd847b8 commit fe8b932
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export const InspectorDataGrid = ({ columns, data, dataGridAriaLabel }: Inspecto

useEffect(
() => {
setPagination({
...pagination,
pageIndex: 0,
});
setVisibleColumns(columns.map((column) => column.id));
},
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import React, { useEffect, useState } from 'react';
import { i18n } from '@kbn/i18n';

import 'brace/mode/json';

import {
EuiFlexItem,
EuiFlexGroup,
Expand Down

0 comments on commit fe8b932

Please sign in to comment.