mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 10:26:35 +00:00
fix(api): upsert block property should work with editing mode
This commit is contained in:
@@ -853,9 +853,11 @@
|
||||
:block/properties properties
|
||||
:block/content content})]
|
||||
(outliner-core/save-node block)
|
||||
(let [opts {:key :block/change
|
||||
:data [block]}]
|
||||
(db/refresh! repo opts)))))))
|
||||
|
||||
;; update editing input content
|
||||
(when-let [editing-block (state/get-edit-block)]
|
||||
(and (= (:block/uuid editing-block) block-id)
|
||||
(state/set-edit-content! (state/get-edit-input-id) content))))))))
|
||||
|
||||
(defn remove-block-property!
|
||||
[block-id key]
|
||||
|
||||
Reference in New Issue
Block a user