fix don'r remove orphaned whiteboards

pull/8966/head
Konstantinos Kaloutas 2023-03-31 16:00:42 +03:00 committed by Tienson Qin
parent 2b1031a747
commit 601bc95ec7
1 changed files with 1 additions and 0 deletions

View File

@ -1697,6 +1697,7 @@ independent of format as format specific heading characters are stripped"
(= 1 (count children))
(contains? #{"" "-" "*"} (string/trim (:block/content first-child))))))
(not (contains? built-in-pages name))
(not (= "whiteboard" (:block/type page)))
(not (:block/_namespace page))
;; a/b/c might be deleted but a/b/c/d still exists (for backward compatibility)
(not (and (string/includes? name "/")