Browse Source

fix: refs not rebuilt when applying rtc remote ops

Tienson Qin 3 weeks ago
parent
commit
f9cd1acbff
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/worker/pipeline.cljs

+ 2 - 1
src/main/frontend/worker/pipeline.cljs

@@ -38,7 +38,8 @@
 (defn- rebuild-block-refs
   [repo {:keys [tx-meta db-after db-before]} blocks]
   (when (or (and (:outliner-op tx-meta) (refs-need-recalculated? tx-meta))
-            (:rtc-tx? tx-meta))
+            (:rtc-tx? tx-meta)
+            (:rtc-op? tx-meta))
     (let [db-based? (entity-plus/db-based-graph? db-after)]
       (mapcat (fn [block]
                 (when (d/entity db-after (:db/id block))