mirror of
https://github.com/penpot/penpot.git
synced 2025-04-09 21:41:23 -05:00
🐛 Make the absorb library aware that file can be nil
This commit is contained in:
parent
8dbf6adfda
commit
df7dd15705
1 changed files with 3 additions and 2 deletions
|
@ -409,8 +409,9 @@
|
|||
[cfg data file-id]
|
||||
(let [library-ids (get-libraries cfg [file-id])]
|
||||
(reduce (fn [data library-id]
|
||||
(let [library (get-file cfg library-id)]
|
||||
(ctf/absorb-assets data (:data library))))
|
||||
(if-let [library (get-file cfg library-id)]
|
||||
(ctf/absorb-assets data (:data library))
|
||||
data))
|
||||
data
|
||||
library-ids)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue