We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d39a371 commit d4f515dCopy full SHA for d4f515d
src/lib/components/splits/splits.svelte
@@ -5,7 +5,7 @@
5
6
// Sort splits by highest percentage first, with groups at the bottom always.
7
const sortList = (list: Splits) =>
8
- list.sort((a, b) => {
+ [...list].sort((a, b) => {
9
if (a.__typename === 'SplitGroup' && b.__typename === 'SplitGroup') return 0;
10
if (a.__typename === 'SplitGroup') return 1;
11
if (b.__typename === 'SplitGroup') return -1;
@@ -56,7 +56,7 @@
56
</script>
57
58
<ul class="splits-list" class:group={isGroup}>
59
- {#each sortedList as listItem, index}
+ {#each sortedList as listItem, index (index)}
60
<li class="split">
61
<SplitComponent
62
groupExpanded={startExpanded}
0 commit comments