Skip to content

Commit ff98be1

Browse files
committed
Revert "Lazy load css for legacy themes"
This reverts commit 739b1b7.
1 parent 739b1b7 commit ff98be1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/components/AgGrid.react.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ function DashAgGrid(props) {
103103

104104
const shouldLoadLegacyCSS = useMemo(() => {
105105
// Only load legacy CSS if theme is 'legacy' or unset
106-
const dashGridOptions = props.dashGridOptions || {};
107106
return (
108-
!('theme' in dashGridOptions) || dashGridOptions.theme === 'legacy'
107+
!('theme' in props.dashGridOptions) ||
108+
props.dashGridOptions.theme === 'legacy'
109109
);
110-
}, [props.dashGridOptions]);
110+
}, [props.dashGridOptions.theme]);
111111

112112
const LegacyThemeLoader = useMemo(() => {
113113
if (

0 commit comments

Comments
 (0)