fix: react keys

pull/3052/head
Tienson Qin 2021-11-02 23:10:08 +08:00
parent e4c0e8e07c
commit 7c061e4605
1 changed files with 3 additions and 1 deletions

View File

@ -229,7 +229,9 @@
(util/concat-without-nil (util/concat-without-nil
(mapcat (mapcat
(fn [block] (fn [block]
(when-let [page-id (:db/id (:block/page block))] (when-let [page-id (or (:db/id (:block/page block))
(and (int? (:block/page block))
(:block/page block)))]
[[:blocks (:block/uuid block)] [[:blocks (:block/uuid block)]
[:page/blocks page-id] [:page/blocks page-id]
[:page/ref-pages page-id]])) [:page/ref-pages page-id]]))