Skip to content

Commit d986a84

Browse files
committed
fixing missing const
1 parent 29d08c3 commit d986a84

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/fragments/AgGrid.react.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ import {customFunctions} from '../renderers/customFunctions';
4343

4444
import {AgGridReact, useGridFilter} from 'ag-grid-react';
4545
import * as agGrid from 'ag-grid-community';
46-
const themes = {themeAlpine, themeBalham, themeMaterial, themeQuartz} = agGrid;
46+
let themes = {};
47+
if (agGrid && typeof agGrid === 'object' && !Array.isArray(agGrid)) {
48+
const {themeAlpine, themeBalham, themeMaterial, themeQuartz} = agGrid;
49+
themes = {themeAlpine, themeBalham, themeMaterial, themeQuartz};
50+
}
4751

4852
// d3 imports
4953
import * as d3Format from 'd3-format';

0 commit comments

Comments
 (0)