geido commented on code in PR #35663:
URL: https://github.com/apache/superset/pull/35663#discussion_r2435950258


##########
superset-frontend/src/pages/ThemeList/index.tsx:
##########
@@ -119,6 +119,30 @@ function ThemesList({
 
   const { showConfirm, ConfirmModal } = useConfirmModal();
 
+  const clearAppliedTheme = useCallback(() => {
+    setAppliedThemeId(null);
+    try {
+      localStorage.removeItem('superset-applied-theme-id');
+    } catch (error) {
+      // Ignore localStorage errors
+    }
+  }, []);
+
+  useEffect(() => {
+    if (hasDevOverride()) {

Review Comment:
   I don't think it should re-run. Also, just tested clearing the local theme 
and it seems to work fine.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to