X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fhelpers%2FTournament.js;fp=resources%2Fjs%2Fhelpers%2FTournament.js;h=ff1a06349424f7567e9de29df8a07f2b3d2a4e30;hb=09c1644b5f64d7423905ae1be8f79da0b482289a;hp=2c145a83cc5aa48bf6e3b0c4688ae9c4e5967aa4;hpb=9e52cf7a5fc89a89301e00e9595c80b783449bbe;p=alttp.git diff --git a/resources/js/helpers/Tournament.js b/resources/js/helpers/Tournament.js index 2c145a8..ff1a063 100644 --- a/resources/js/helpers/Tournament.js +++ b/resources/js/helpers/Tournament.js @@ -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), }; };