mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 08:04:40 +00:00
fix(timestamp): clear editing state before setting timestamp
If editing state is on in other block, submitting the timestamp to current block will also add a timestamp to the block.
This commit is contained in:
@@ -108,10 +108,10 @@
|
||||
block-id (or (:block/uuid (state/get-edit-block))
|
||||
(:block/uuid block))
|
||||
typ (or @commands/*current-command typ)]
|
||||
(state/clear-edit!)
|
||||
(editor-handler/set-block-timestamp! block-id
|
||||
typ
|
||||
text)
|
||||
(state/clear-edit!)
|
||||
(when show?
|
||||
(reset! show? false))))
|
||||
(clear-timestamp!)
|
||||
|
||||
Reference in New Issue
Block a user