Explorar o código

fix: copy+paste persisting invalid, transient attribute

To repro, copy and paste block(s) in a db graph
Gabriel Horner hai 1 ano
pai
achega
b1eeff0083
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/frontend/util.cljc

+ 1 - 1
src/main/frontend/util.cljc

@@ -858,7 +858,7 @@
                  (common-util/remove-nils-non-nested
                   {:text text
                    :html html
-                   :blocks (when (seq blocks) (pr-str blocks))}))]
+                   :blocks (when (seq blocks) (pr-str (mapv #(dissoc % :block.temp/fully-loaded? %) blocks)))}))]
        (if owner-window
          (utils/writeClipboard data owner-window)
          (utils/writeClipboard data)))))