From a09917f6712577eec42248b4b763955ffca5b92a Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Thu, 4 May 2023 09:48:27 -0400 Subject: [PATCH] Remove outdated comment from #9254 Also fix typo on 5677be9bfddfb30708b56eaea985669688a05832 /cc @tiensonqin --- src/main/frontend/modules/outliner/pipeline.cljs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/frontend/modules/outliner/pipeline.cljs b/src/main/frontend/modules/outliner/pipeline.cljs index 2aafe0b99..2a43867f1 100644 --- a/src/main/frontend/modules/outliner/pipeline.cljs +++ b/src/main/frontend/modules/outliner/pipeline.cljs @@ -37,14 +37,13 @@ (let [parents (db-model/get-block-parents repo (:block/uuid block)) parents-refs (->> (mapcat :block/path-refs parents) (map :db/id)) - old-refs (when db-before + old-refs (if db-before (set (map :db/id (:block/path-refs (d/entity db-before (:db/id block))))) #{}) new-refs (set (util/concat-without-nil [(:db/id (:block/page block))] (map :db/id (:block/refs block)) parents-refs)) - ;; Usually has changed as new-refs has page id while old-refs doesn't refs-changed? (not= old-refs new-refs) children (db-model/get-block-children-ids repo (:block/uuid block)) ;; Builds map of children ids to their parent id and :block/refs ids