소스 검색

fix: wrong eid in tx-data

Tienson Qin 7 달 전
부모
커밋
941567cf10
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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'