Skip to content

Commit 820b2f0

Browse files
committed
fix: a property should never be converted to a class
1 parent 4ba05f6 commit 820b2f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/outliner/src/logseq/outliner/page.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@
261261
:outliner-op :save-block}]
262262
(when (and class?
263263
(not (ldb/class? existing-page))
264-
(or (ldb/property? existing-page) (ldb/internal-page? existing-page)))
265-
;; Convert existing user property or page to class
264+
(ldb/internal-page? existing-page))
265+
;; Convert existing page to class
266266
(let [tx-data [(merge (db-class/build-new-class db (select-keys existing-page [:block/title :block/uuid :block/created-at]))
267267
(select-keys existing-page [:db/ident]))
268268
[:db/retract [:block/uuid (:block/uuid existing-page)] :block/tags :logseq.class/Page]]]

0 commit comments

Comments
 (0)