|
@@ -4,6 +4,7 @@
|
|
[frontend.date :as date]
|
|
[frontend.date :as date]
|
|
[frontend.db :as db]
|
|
[frontend.db :as db]
|
|
[frontend.db.utils :as db-utils]
|
|
[frontend.db.utils :as db-utils]
|
|
|
|
+ [frontend.modules.file.uprint :as up]
|
|
[frontend.state :as state]
|
|
[frontend.state :as state]
|
|
[frontend.util.property :as property]
|
|
[frontend.util.property :as property]
|
|
[frontend.util.fs :as fs-util]
|
|
[frontend.util.fs :as fs-util]
|
|
@@ -140,7 +141,7 @@
|
|
file-path (-> (db-utils/entity file-db-id) :file/path)]
|
|
file-path (-> (db-utils/entity file-db-id) :file/path)]
|
|
(if (and (string? file-path) (not-empty file-path))
|
|
(if (and (string? file-path) (not-empty file-path))
|
|
(let [new-content (if (= "whiteboard" (:block/type page-block))
|
|
(let [new-content (if (= "whiteboard" (:block/type page-block))
|
|
- (pr-str {:blocks tree
|
|
|
|
|
|
+ (up/ugly-pr-str {:blocks tree
|
|
:pages (list (remove-transit-ids page-block))})
|
|
:pages (list (remove-transit-ids page-block))})
|
|
(tree->file-content tree {:init-level init-level}))
|
|
(tree->file-content tree {:init-level init-level}))
|
|
files [[file-path new-content]]
|
|
files [[file-path new-content]]
|