Browse Source

fix: console error of zero-sized element

Tienson Qin 8 months ago
parent
commit
2f9db90303
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/main/frontend/components/views.cljs

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

@@ -1162,8 +1162,7 @@
          (p/let [block (db-async/<get-block (state/get-current-repo) db-id opts)]
            (set-item! block))))
      [db-id])
-    (when item
-      (item-render (cond (map? item) item (number? item) {:db/id item})))))
+    (item-render (cond (map? item) item (number? item) {:db/id item}))))
 
 (rum/defc table-body < rum/static
   [table option rows *scroller-ref *rows-wrap set-items-rendered!]