From e4ec954b8c408bbf6676b835e26fdf0e123f33d2 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 23 Aug 2023 18:34:10 +0200 Subject: [PATCH] :bug: Fix incorrect impl of without-keys for records --- common/src/app/common/data.cljc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/common/src/app/common/data.cljc b/common/src/app/common/data.cljc index bf74b198bf..ba08d0c73c 100644 --- a/common/src/app/common/data.cljc +++ b/common/src/app/common/data.cljc @@ -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