Tienson Qin 2 месяцев назад
Родитель
Сommit
81704233d5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/main/frontend/worker/rtc/remote_update.cljs

+ 2 - 2
src/main/frontend/worker/rtc/remote_update.cljs

@@ -570,8 +570,8 @@ so need to pull earlier remote-data from websocket."})
         (when-not (or
                    ;; property or class exists
                    (and db-ident (d/entity @conn db-ident))
-                   ;; node with the same block/uuid exists
-                   (d/entity @conn [:block/uuid self]))
+                   ;; journal with the same block/uuid exists
+                   (ldb/journal? (d/entity @conn [:block/uuid self])))
           (let [create-opts {:uuid self
                              :old-db-id (@worker-state/*deleted-block-uuid->db-id self)}
                 [_ page-name page-uuid] (worker-page/rtc-create-page! conn config