瀏覽代碼

fix: don't show alert when publishing

Tienson Qin 4 年之前
父節點
當前提交
9395a18ed1
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/frontend/components/widgets.cljs

+ 2 - 1
src/main/frontend/components/widgets.cljs

@@ -136,7 +136,8 @@
 
 (rum/defc demo-graph-alert
   []
-  (when (config/demo-graph?)
+  (when (and (config/demo-graph?)
+             (not config/publishing?))
     (ui/admonition
      :warning
      [:p (util/format