mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 23:54:55 +00:00
fix: set timestamp to another editing block
close https://github.com/logseq/logseq/issues/3783
This commit is contained in:
@@ -82,6 +82,7 @@
|
||||
(reset! *timestamp default-timestamp-value)
|
||||
(reset! *show-time? false)
|
||||
(reset! *show-repeater? false)
|
||||
(state/set-timestamp-block! nil)
|
||||
(state/set-state! :date-picker/date nil))
|
||||
|
||||
(defn- on-submit
|
||||
@@ -95,8 +96,8 @@
|
||||
text (repeated/timestamp-map->text timestamp)
|
||||
block-data (state/get-timestamp-block)
|
||||
{:keys [block typ show?]} block-data
|
||||
block-id (or (:block/uuid (state/get-edit-block))
|
||||
(:block/uuid block))
|
||||
block-id (or (:block/uuid block)
|
||||
(:block/uuid (state/get-edit-block)))
|
||||
typ (or @commands/*current-command typ)]
|
||||
(editor-handler/set-block-timestamp! block-id
|
||||
typ
|
||||
|
||||
Reference in New Issue
Block a user