fix: *property-key should be reactive

This commit is contained in:
Tienson Qin
2024-05-27 19:46:12 +08:00
parent 77263e10d0
commit 7f010697a0
2 changed files with 5 additions and 5 deletions

View File

@@ -348,7 +348,7 @@
:editor/add-property {:binding "mod+p"
:fn (fn [e]
(.preventDefault e)
(when e (.preventDefault e))
(state/pub-event! [:editor/new-property {}]))}
:ui/toggle-brackets {:binding "mod+c mod+b"
@@ -405,7 +405,7 @@
:fn (fn [] (js/document.execCommand "copy"))}
:graph/export-as-html {:fn #(export-handler/download-repo-as-html!
(state/get-current-repo))
(state/get-current-repo))
:binding []}
:graph/open {:fn #(do
@@ -426,7 +426,6 @@
:inactive (not config/db-graph-enabled?)
:binding false}
:graph/re-index {:fn (fn []
(p/let [multiple-windows? (ipc/ipc "graphHasMultipleWindows" (state/get-current-repo))]
(state/pub-event! [:graph/ask-for-re-index (atom multiple-windows?) nil])))