Browse Source

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

related to https://github.com/logseq/db-test/issues/483
Tienson Qin 3 months ago
parent
commit
9c92fbecc7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/handler/editor.cljs

+ 1 - 1
src/main/frontend/handler/editor.cljs

@@ -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)