« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/composite')
-rw-r--r--src/data/composite/data/withSortedList.js2
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 {