mirror of
https://github.com/logseq/logseq.git
synced 2026-05-24 12:44:22 +00:00
fix: presenting modal
This commit is contained in:
@@ -20,7 +20,8 @@
|
||||
(let [{:keys [open? block]} (rum/react mobile-state/*modal-data)
|
||||
show-action-bar? (state/sub :mobile/show-action-bar?)
|
||||
close! #(swap! mobile-state/*modal-data assoc :open? false)
|
||||
block (db/entity (:db/id block))
|
||||
block (when-let [id (:block/uuid block)]
|
||||
(db/entity [:block/uuid id]))
|
||||
open? (and open? block)]
|
||||
(when open?
|
||||
(state/clear-edit!)
|
||||
|
||||
Reference in New Issue
Block a user