There was an error while loading. Please reload this page.
1 parent e604f0c commit 739b1b7Copy full SHA for 739b1b7
src/lib/components/AgGrid.react.js
@@ -103,11 +103,11 @@ function DashAgGrid(props) {
103
104
const shouldLoadLegacyCSS = useMemo(() => {
105
// Only load legacy CSS if theme is 'legacy' or unset
106
+ const dashGridOptions = props.dashGridOptions || {};
107
return (
- !('theme' in props.dashGridOptions) ||
108
- props.dashGridOptions.theme === 'legacy'
+ !('theme' in dashGridOptions) || dashGridOptions.theme === 'legacy'
109
);
110
- }, [props.dashGridOptions.theme]);
+ }, [props.dashGridOptions]);
111
112
const LegacyThemeLoader = useMemo(() => {
113
if (
0 commit comments