0
Fork 0
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:
Andrey Antukh 2025-02-11 15:42:55 +01:00
parent 8dbf6adfda
commit df7dd15705

View file

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