fix: open local file not work when create new page

This commit is contained in:
charlie
2021-05-06 17:39:45 +08:00
committed by Tienson Qin
parent db62351de1
commit 3a2ebd00b7
3 changed files with 84 additions and 81 deletions

View File

@@ -87,7 +87,7 @@
(fn [{:keys [close-fn] :as state}]
[:div.py-1.rounded-md.shadow-xs
(when links-header links-header)
(for [{:keys [options title icon]} links]
(for [{:keys [options title icon]} (if (fn? links) (links) links)]
(let [new-options
(assoc options
:on-click (fn [e]