Browse Source

fix: wrong eid in tx-data

Tienson Qin 7 months ago
parent
commit
941567cf10
1 changed files with 3 additions and 1 deletions
  1. 3 1
      deps/outliner/src/logseq/outliner/core.cljs

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

@@ -715,7 +715,9 @@
                 full-tx' (walk/prewalk
                           (fn [f]
                             (if (de/entity? f)
-                              (or (id->new-uuid (:db/id f)) (:db/id f))
+                              (if-let [id (id->new-uuid (:db/id f))]
+                                [:block/uuid id]
+                                (:db/id f))
                               f))
                           full-tx)]
             {:tx-data full-tx'