diff --git a/grafana-plugin/jest.config.js b/grafana-plugin/jest.config.js index 76f95be8..31684c09 100644 --- a/grafana-plugin/jest.config.js +++ b/grafana-plugin/jest.config.js @@ -21,6 +21,7 @@ module.exports = { moduleNameMapper: { "grafana/app/(.*)": '/src/jest/grafanaMock.ts', + "jest/outgoingWebhooksStub": '/src/jest/outgoingWebhooksStub.ts', "^jest$": '/src/jest', '^.+\\.(css|scss)$': '/src/jest/styleMock.ts', "^lodash-es$": "lodash", diff --git a/grafana-plugin/src/components/GTable/GTable.tsx b/grafana-plugin/src/components/GTable/GTable.tsx index 0e6aaed5..0706ff6f 100644 --- a/grafana-plugin/src/components/GTable/GTable.tsx +++ b/grafana-plugin/src/components/GTable/GTable.tsx @@ -107,16 +107,6 @@ const GTable: FC = (props) => { [data] ); - /* useEffect(() => { // todo clear selection on data change - if (rowSelection && rowSelection.selectedRowKeys.length) { - const { selectedRowKeys, onChange } = rowSelection; - const newSelectedRowKeys = selectedRowKeys.filter((key: string) => - data.some((item: any) => item[rowKey as string] === key) - ); - onChange(newSelectedRowKeys); - } - }, [data?.length]); */ - const columns = useMemo(() => { const columns = [...columnsProp]; @@ -146,7 +136,7 @@ const GTable: FC = (props) => { }, [rowSelection, columnsProp, data]); return ( -
+
{ onClose={onHide} closeOnMaskClick > -
+