]> git.localhorst.tv Git - alttp.git/commitdiff
copy rounds before reverse
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 12 Apr 2022 22:16:08 +0000 (00:16 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 12 Apr 2022 22:16:08 +0000 (00:16 +0200)
resources/js/helpers/Tournament.js

index fac1681f2bbc94170f41715f9a69238019e0ed9a..dd87993295082be648cb97dacd5eb8ada0b70cbf 100644 (file)
@@ -38,7 +38,7 @@ export const getScoreTable = tournament => {
        runners.forEach(participant => {
                running[participant.id] = 0;
        });
-       const data = tournament.rounds.reverse().map(round => {
+       const data = [...tournament.rounds].reverse().map(round => {
                const entry = { number: `#${round.number}` };
                runners.forEach(participant => {
                        const result = Participant.findResult(participant, round);