Browse Source

fix: property value in table view doesn't render for new objects

fixes https://github.com/logseq/db-test/issues/675
Tienson Qin 1 ngày trước cách đây
mục cha
commit
77c3ddf493

+ 1 - 1
src/main/frontend/components/views.cljs

@@ -990,7 +990,7 @@
 (rum/defc table-row < rum/reactive db-mixins/query
 (rum/defc table-row < rum/reactive db-mixins/query
   [table row props option]
   [table row props option]
   (let [block (db/sub-block (:db/id row))
   (let [block (db/sub-block (:db/id row))
-        block' (if (= :full (:block.temp/load-status block)) block row)
+        block' (if (contains? #{:self :full} (:block.temp/load-status block)) block row)
         row' (when block'
         row' (when block'
                (-> block'
                (-> block'
                    (update :block/tags (fn [tags]
                    (update :block/tags (fn [tags]