Explorar o código

Remove outdated comment from #9254

Also fix typo on 5677be9bfddfb30708b56eaea985669688a05832 /cc @tiensonqin
Gabriel Horner %!s(int64=2) %!d(string=hai) anos
pai
achega
a09917f671
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/main/frontend/modules/outliner/pipeline.cljs

+ 1 - 2
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