瀏覽代碼

fix: merge issue

Peng Xiao 3 年之前
父節點
當前提交
bec195f876
共有 1 個文件被更改,包括 1 次插入1 次删除
  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}))