0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

🐛 Fix unexpected nil key on page-index after page creation

This commit is contained in:
Andrey Antukh 2023-11-16 19:57:56 +01:00 committed by Andrés Moya
parent 63ed9cbbde
commit f2a4275531

View file

@ -259,7 +259,8 @@
(if-let [[page-id changes] (first entries)]
(recur (-> fdata
(cpc/process-changes changes)
(ctst/update-object-indices page-id))
(cond-> (some? page-id)
(ctst/update-object-indices page-id)))
(rest entries))
fdata))))))
(-> state