]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/helpers/Tournament.js
lock rounds
[alttp.git] / resources / js / helpers / Tournament.js
index 2c145a83cc5aa48bf6e3b0c4688ae9c4e5967aa4..ff1a06349424f7567e9de29df8a07f2b3d2a4e30 100644 (file)
@@ -64,7 +64,7 @@ export const patchRound = (tournament, round) => {
        if (!tournament) return tournament;
        return {
                ...tournament,
-               rounds: tournament.rounds.map(r => r.id === round.id ? round : r),
+               rounds: tournament.rounds.map(r => r.id === round.id ? { ...r, ...round } : r),
        };
 };