0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 00:58:26 -05:00

Merge pull request #1016 from penpot/fix-library-assets

🐛 Fix error when opening assets of external library
This commit is contained in:
Andrey Antukh 2021-06-07 11:25:22 +02:00 committed by GitHub
commit d80bd3661d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)]