Yue Yang 2 years ago
parent
commit
a6f6b0abae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/ui.cljs

+ 1 - 1
src/main/frontend/ui.cljs

@@ -368,7 +368,7 @@
     (when-let [custom-theme (state/sub [:ui/custom-theme (keyword theme)])]
       ;; If the name is nil, the user has not set a custom theme (initially {:mode light/dark}).
       ;; The url is not used because the default theme does not have an url.
-      (when-let [name (:name custom-theme)]
+      (if (some? (:name custom-theme))
         (js/LSPluginCore.selectTheme (bean/->js custom-theme)
                                      (bean/->js {:emit false}))
         (state/set-state! :plugin/selected-theme (:url custom-theme))))))