diff options
Diffstat (limited to 'src/data/composite')
-rw-r--r-- | src/data/composite/data/withSortedList.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/composite/data/withSortedList.js b/src/data/composite/data/withSortedList.js index 882907f5..4ab0dfb1 100644 --- a/src/data/composite/data/withSortedList.js +++ b/src/data/composite/data/withSortedList.js @@ -102,7 +102,7 @@ export default templateCompositeFrom({ if (empty(accumulator)) { accumulator.push(0); } else { - const last = accumulator[accumulator.length - 1]; + const last = accumulator.at(-1); if (collapseEqual) { accumulator.push(last); } else { |