We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e604f0c commit 744b9e5Copy full SHA for 744b9e5
src/lib/components/AgGrid.react.js
@@ -103,11 +103,12 @@ 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) ||
109
+ dashGridOptions.theme === 'legacy'
110
);
- }, [props.dashGridOptions.theme]);
111
+ }, [props.dashGridOptions]);
112
113
const LegacyThemeLoader = useMemo(() => {
114
if (
0 commit comments