mirror of
https://github.com/penpot/penpot.git
synced 2025-03-13 00:01:51 -05:00
🐛 Fix error when opening assets of external library
This commit is contained in:
parent
a97c7cada4
commit
44f4441372
1 changed files with 2 additions and 1 deletions
|
@ -204,7 +204,8 @@
|
||||||
|
|
||||||
(mf/defc asset-section
|
(mf/defc asset-section
|
||||||
[{:keys [children file-id title box assets-count open?]}]
|
[{: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)
|
get-role #(.. % -props -role)
|
||||||
title-buttons (filter #(= (get-role %) :title-button) children)
|
title-buttons (filter #(= (get-role %) :title-button) children)
|
||||||
content (filter #(= (get-role %) :content) children)]
|
content (filter #(= (get-role %) :content) children)]
|
||||||
|
|
Loading…
Add table
Reference in a new issue