diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs index 228f7dc12..26fd4d30b 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs @@ -204,7 +204,8 @@ (mf/defc asset-section [{:keys [children file-id title box assets-count open?]}] - (let [children (if (array? children) children [children]) + (let [children (->> (if (array? children) children [children]) + (filter some?)) get-role #(.. % -props -role) title-buttons (filter #(= (get-role %) :title-button) children) content (filter #(= (get-role %) :content) children)]