We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 739b1b7 commit ff98be1Copy full SHA for ff98be1
1 file changed
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 (
108
- !('theme' in dashGridOptions) || dashGridOptions.theme === 'legacy'
+ !('theme' in props.dashGridOptions) ||
+ props.dashGridOptions.theme === 'legacy'
109
);
110
- }, [props.dashGridOptions]);
+ }, [props.dashGridOptions.theme]);
111
112
const LegacyThemeLoader = useMemo(() => {
113
if (
0 commit comments