diff --git a/src/plugins/vis_type_vega/public/vega_inspector/components/inspector_data_grid.tsx b/src/plugins/vis_type_vega/public/vega_inspector/components/inspector_data_grid.tsx index ddadc1fc487fb..00f24e03d8196 100644 --- a/src/plugins/vis_type_vega/public/vega_inspector/components/inspector_data_grid.tsx +++ b/src/plugins/vis_type_vega/public/vega_inspector/components/inspector_data_grid.tsx @@ -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 diff --git a/src/plugins/vis_type_vega/public/vega_inspector/components/spec_viewer.tsx b/src/plugins/vis_type_vega/public/vega_inspector/components/spec_viewer.tsx index 8a4df2f1382d6..c3827af380ce0 100644 --- a/src/plugins/vis_type_vega/public/vega_inspector/components/spec_viewer.tsx +++ b/src/plugins/vis_type_vega/public/vega_inspector/components/spec_viewer.tsx @@ -19,8 +19,6 @@ import React, { useEffect, useState } from 'react'; import { i18n } from '@kbn/i18n'; -import 'brace/mode/json'; - import { EuiFlexItem, EuiFlexGroup,