mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05:00
🐛 Fix error instantiating a component
This commit is contained in:
parent
93174f54a3
commit
bea3699451
1 changed files with 2 additions and 2 deletions
|
@ -209,9 +209,9 @@
|
|||
"Retrieve a component from libraries, if no library-id is provided, we
|
||||
iterate over all libraries and find the component on it."
|
||||
([libraries component-id]
|
||||
(some #(-> % :components (get component-id)) (vals libraries)))
|
||||
(some #(-> % :data :components (get component-id)) (vals libraries)))
|
||||
([libraries library-id component-id]
|
||||
(get-in libraries [library-id :components component-id])))
|
||||
(get-in libraries [library-id :data :components component-id])))
|
||||
|
||||
(defn ^boolean is-main-of?
|
||||
[shape-main shape-inst]
|
||||
|
|
Loading…
Reference in a new issue