From 26dda8fa743e3793847af94b4c68fd02132918a1 Mon Sep 17 00:00:00 2001 From: Metritutus <324345+Metritutus@users.noreply.github.com> Date: Tue, 29 Oct 2024 20:36:39 +0000 Subject: [PATCH] * Fixed dynamicSort() method in gridHelper mutating the original array. In Vue3 this results in the sort not being detected. --- client/src/services/gridHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/services/gridHelper.js b/client/src/services/gridHelper.js index 6c6c2b64b..88327c434 100644 --- a/client/src/services/gridHelper.js +++ b/client/src/services/gridHelper.js @@ -11,7 +11,7 @@ class GridHelper { dynamicSort(data, sortInfo, missingPropertyFallbackFunc) { if (sortInfo?.propertyPaths != null) { - data = data.sort((a, b) => this.dynamicCompare(a, b, sortInfo, missingPropertyFallbackFunc)); + data = [...data].sort((a, b) => this.dynamicCompare(a, b, sortInfo, missingPropertyFallbackFunc)); } return data;