fix: images uploaded on other pages are added to today page

related to https://github.com/logseq/db-test/issues/483
This commit is contained in:
Tienson Qin
2025-09-24 09:48:14 +08:00
parent 42dc6ca6ff
commit 9c92fbecc7

View File

@@ -1557,7 +1557,7 @@
today-page (if (nil? today-page-e)
(state/pub-event! [:page/create today-page-name])
today-page-e)
insert-to-current-block-page? (and (:block/uuid edit-block) (string/blank? (state/get-edit-content)) (not pdf-area?))
insert-to-current-block-page? (and (:block/uuid edit-block) (not pdf-area?))
insert-opts' (if insert-to-current-block-page?
(assoc insert-opts
:block-uuid (:block/uuid edit-block)