Skip to content

Commit

Permalink
fix: case sensitive tag creation broken by previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
logseq-cldwalker committed Jan 2, 2025
1 parent b7723db commit bc9aa08
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/frontend/worker/handler/page/db_based/page.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
(when (db-property-util/built-in-has-ref-value? k)
[k v])))
(into {})))]
(cond-> [(if class? (db-class/build-new-class db page') page')]
(cond-> (if class? [(db-class/build-new-class db page')
[:db/retract [:block/uuid (:block/uuid page)] :block/tags :logseq.class/Page]]
[page'])
(seq property-vals-tx-m)
(into (vals property-vals-tx-m))
true
Expand Down Expand Up @@ -172,7 +174,7 @@
(let [date-formatter (:logseq.property.journal/title-format (entity-plus/entity-memoized db :logseq.class/Journal))
title (sanitize-title title*)
types (cond class?
#{:logseq.class/Tag :logseq.class/Page}
#{:logseq.class/Tag}
whiteboard?
#{:logseq.class/Whiteboard}
today-journal?
Expand Down

0 comments on commit bc9aa08

Please sign in to comment.