Selaa lähdekoodia

fix: remove tags from the original block if it's tagged

Tienson Qin 2 vuotta sitten
vanhempi
sitoutus
384e67dc9e
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      src/main/frontend/modules/outliner/core.cljs

+ 4 - 1
src/main/frontend/modules/outliner/core.cljs

@@ -281,7 +281,10 @@
         (when (seq other-tx)
           (swap! txs-state (fn [txs]
                              (vec (concat txs other-tx)))))
-        (swap! txs-state conj (dissoc m :db/other-tx)))
+        (swap! txs-state conj
+               (cond-> (dissoc m :db/other-tx)
+                 structured-tags?
+                 (dissoc :block/tags :block/refs))))
 
       (when structured-tags?
         (assoc-linked-block-when-save txs-state block-entity m))