Skip to content

Commit 546499e

Browse files
committed
fix(ui): updateBlock plugin API does not update UI logseq/db-test#771
1 parent adbaf10 commit 546499e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/logseq/api/db_based.cljs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@
9696
:reset-property-values (:reset-property-values opts)}))
9797
(editor-handler/save-block! repo
9898
(sdk-utils/uuid-or-throw-error block-uuid) content
99-
(dissoc opts :properties))))))
99+
(dissoc opts :properties))
100+
;; update editing block content if the block is currently being edited
101+
(when (= block-uuid (some-> (state/get-edit-block) :block/uuid))
102+
(state/set-edit-content! content))))))
100103

101104
(defn get-property
102105
[k]

0 commit comments

Comments
 (0)