Ver código fonte

fix: don't insert duplicated template blocks for rtc remote ops

Tienson Qin 2 meses atrás
pai
commit
166abe2e42
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/main/frontend/worker/pipeline.cljs

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

@@ -287,7 +287,8 @@
         display-blocks-tx-data (add-missing-properties-to-typed-display-blocks db-after tx-data)
         commands-tx (when-not (or (:undo? tx-meta) (:redo? tx-meta) (:rtc-tx? tx-meta))
                       (commands/run-commands conn tx-report))
-        insert-templates-tx (insert-tag-templates repo tx-report)
+        insert-templates-tx (when-not (:rtc-tx? tx-meta)
+                              (insert-tag-templates repo tx-report))
         created-by-tx (add-created-by-ref-hook db-before db-after tx-data tx-meta)]
     (concat toggle-page-and-block-tx-data display-blocks-tx-data commands-tx insert-templates-tx created-by-tx)))