fix: clean orphaned pages when saving the editor

This commit is contained in:
Tienson Qin
2021-11-22 22:12:55 +08:00
parent 9315b3bab4
commit 166ffa3b35
4 changed files with 56 additions and 32 deletions

View File

@@ -186,13 +186,6 @@
(doseq [block blocks]
(gdom-classes/remove block "block-highlight"))))
;; FIXME: children' :block/path-ref-pages
(defn compute-retract-refs
"Computes old references to be retracted."
[eid {:block/keys [refs]} old-refs]
;; TODO:
)
(defn- get-edit-input-id-with-block-id
[block-id]
(when-let [first-block (util/get-first-block-by-id block-id)]