fix: make sure container-id exists for now

experiment/tanstack-table
Tienson Qin 2024-05-20 15:34:28 +08:00
parent 29de339fa1
commit 3ac1f3ca64
1 changed files with 2 additions and 1 deletions

View File

@ -176,7 +176,8 @@
(when block (when block
(state/clear-edit!) (state/clear-edit!)
(let [container-id (or container-id (let [container-id (or container-id
@(:editor/container-id @state/state))] @(:editor/container-id @state/state)
:unknown-container)]
(state/set-editing! (str "edit-block-" (:block/uuid block)) content block text-range {:container-id container-id})) (state/set-editing! (str "edit-block-" (:block/uuid block)) content block text-range {:container-id container-id}))
(mark-last-input-time! repo))) (mark-last-input-time! repo)))