0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-06 12:01:19 -05:00

🐛 Fix unexpected exception on faster merge function.

This commit is contained in:
Andrey Antukh 2020-12-09 14:12:38 +01:00 committed by Alonso Torres
parent 4d7a34a998
commit a674b3ab94

View file

@ -213,7 +213,7 @@
(defn merge
"A faster merge."
[& maps]
(loop [res (transient (first maps))
(loop [res (transient (or (first maps) {}))
maps (next maps)]
(if (nil? maps)
(persistent! res)