浏览代码

fix: tests

Tienson Qin 6 月之前
父节点
当前提交
f5d678b1ac
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      deps/outliner/src/logseq/outliner/core.cljs

+ 1 - 1
deps/outliner/src/logseq/outliner/core.cljs

@@ -227,7 +227,7 @@
   [db tags]
   (mapcat
    (fn [t]
-     (when-not (:db/ident t)
+     (when (and (not (:db/id t)) (not (:db/ident t)) (:block/uuid t)) ; new tag without db/ident
        (let [eid [:block/uuid (:block/uuid t)]]
          [[:db/add eid :db/ident (db-class/create-user-class-ident-from-name db (:block/title t))]
           [:db/retract eid :block/tags :logseq.class/Page]])))