0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-06 20:11:29 -05:00

🐛 Prevent exception when no file is found on process file srepl helper

This commit is contained in:
Andrey Antukh 2025-02-11 15:43:35 +01:00
parent df7dd15705
commit a3bc4ff9f3

View file

@ -132,9 +132,10 @@
(bfc/get-file system id))))
(d/index-by :id)))
file' (if with-libraries?
(update-fn file libs opts)
(update-fn file opts))]
file' (when file
(if with-libraries?
(update-fn file libs opts)
(update-fn file opts)))]
(when (and (some? file')
(not (identical? file file')))