remove unnesessary fragment

pull/10438/head
Tienson Qin 2023-10-10 22:27:24 +08:00
parent 7138be295f
commit 05ed468767
1 changed files with 4 additions and 5 deletions

View File

@ -3476,11 +3476,10 @@
(let [*hidden? (::hidden? state)
hidden? (rum/react *hidden?)
*ref (::ref state)]
[:<>
(if (and hidden? (not (:disable-lazy-load? config)))
[:div {:key (str "item-" (:block/uuid item))}
{:style {:height 24}}]
(block-item-inner config item (assoc opts :*ref *ref)))]))
(if (and hidden? (not (:disable-lazy-load? config)))
[:div {:key (str "item-" (:block/uuid item))
:style {:height 24}}]
(block-item-inner config item (assoc opts :*ref *ref)))))
(defn- block-list
[config blocks]