Skip to content

Commit

Permalink
enhance: don't edit annotation immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Oct 15, 2024
1 parent c1be7c9 commit 7d320ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/frontend/extensions/pdf/assets.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
ref-block)
(let [text (:text content)
properties (cond->
{:block/tags :logseq.class/pdfAnnotation
{:block/tags :logseq.class/pdf-annotation
:logseq.property/ls-type :annotation
:logseq.property/hl-color (:color properties)
:logseq.property/asset (:db/id pdf-block)
Expand All @@ -171,7 +171,7 @@
:sibling? false
:custom-uuid id
:properties properties}
insert-opts))))))))
(assoc insert-opts :edit-block? false)))))))))

(defn ensure-ref-block!
[pdf-current hl insert-opts]
Expand Down

0 comments on commit 7d320ee

Please sign in to comment.