mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 13:11:40 +02:00
🐛 Fix incorrect impl of without-keys for records
This commit is contained in:
parent
0782382ee1
commit
e4ec954b8c
1 changed files with 3 additions and 6 deletions
|
@ -236,12 +236,9 @@
|
||||||
"Return a map without the keys provided
|
"Return a map without the keys provided
|
||||||
in the `keys` parameter."
|
in the `keys` parameter."
|
||||||
[data keys]
|
[data keys]
|
||||||
(persistent!
|
|
||||||
(reduce dissoc!
|
|
||||||
(if (editable-collection? data)
|
(if (editable-collection? data)
|
||||||
(transient data)
|
(persistent! (reduce dissoc! (transient data) keys))
|
||||||
(transient {}))
|
(reduce dissoc data keys)))
|
||||||
keys)))
|
|
||||||
|
|
||||||
(defn remove-at-index
|
(defn remove-at-index
|
||||||
"Takes a vector and returns a vector with an element in the
|
"Takes a vector and returns a vector with an element in the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue