Browse Source

fix: copy+paste persisting invalid, transient attribute

To repro, copy and paste block(s) in a db graph
Gabriel Horner 1 year ago
parent
commit
b1eeff0083
1 changed files with 1 additions and 1 deletions
  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)))))