0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

🐛 Fix incorrect impl of without-keys for records

This commit is contained in:
Andrey Antukh 2023-08-23 18:34:10 +02:00
parent 0782382ee1
commit e4ec954b8c

View file

@ -236,12 +236,9 @@
"Return a map without the keys provided
in the `keys` parameter."
[data keys]
(persistent!
(reduce dissoc!
(if (editable-collection? data)
(transient data)
(transient {}))
keys)))
(if (editable-collection? data)
(persistent! (reduce dissoc! (transient data) keys))
(reduce dissoc data keys)))
(defn remove-at-index
"Takes a vector and returns a vector with an element in the