mirror of
https://github.com/penpot/penpot.git
synced 2026-02-26 06:14:02 +00:00
Merge pull request #1016 from penpot/fix-library-assets
🐛 Fix error when opening assets of external library
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user