[WEB-1551] fix: theme mutation when custom theme is applied. (#4838)

This commit is contained in:
Prateek Shourya 2024-06-17 16:49:42 +05:30 committed by GitHub
parent fc3e63f67a
commit cf8053825b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,7 +50,7 @@ const StoreWrapper: FC<TStoreWrapper> = observer((props) => {
dom
);
} else unsetCustomCssVariables();
}, [userProfile, userProfile?.theme, userProfile?.theme?.palette, setTheme, dom]);
}, [userProfile, userProfile?.theme, userProfile?.theme?.palette, setTheme, dom, resolvedTheme]);
useEffect(() => {
if (dom) return;