fix: presenting modal

This commit is contained in:
Tienson Qin
2025-07-06 13:50:43 +08:00
parent 791bfe51de
commit c87611e985

View File

@@ -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!)