Peng Xiao 3 éve
szülő
commit
bec195f876
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/main/frontend/modules/file/core.cljs

+ 1 - 1
src/main/frontend/modules/file/core.cljs

@@ -137,7 +137,7 @@
         file-db-id (-> page-block :block/file :db/id)
         file-path (-> (db-utils/entity file-db-id) :file/path)]
     (if (and (string? file-path) (not-empty file-path))
-      (let [new-content (if whiteboard?
+      (let [new-content (if (:block/whiteboard? page-block)
                           (util/pp-str {:blocks (map remove-transit-ids tree)
                                         :pages (list (remove-transit-ids page-block))})
                           (tree->file-content tree {:init-level init-level}))