fix: don't jump to new journal when in editing mode

This commit is contained in:
Tienson Qin
2021-02-07 11:10:45 +08:00
parent 2391e723a4
commit ce8ca500bb
2 changed files with 6 additions and 1 deletions

View File

@@ -370,6 +370,10 @@
[]
(ffirst (:editor/editing? @state)))
(defn editing?
[]
(some? (get-edit-input-id)))
(defn get-edit-content
[]
(get (:editor/content @state) (get-edit-input-id)))