fix(editor): clear sync state when switch-graph

This commit is contained in:
Andelf
2024-02-02 16:35:36 +08:00
parent 5f0ffa3055
commit 383950df2f

View File

@@ -179,7 +179,7 @@
(repo-handler/broadcast-persist-db! graph))))
(repo-handler/restore-and-setup-repo! graph)
(graph-switch graph)
state/set-state! :sync-graph/init? false)))
(state/set-state! :sync-graph/init? false))))
(defmethod handle :graph/switch [[_ graph opts]]
(let [opts (if (false? (:persist? opts)) opts (assoc opts :persist? true))]