Commit 1e590dde authored by nanahira's avatar nanahira

fix

parent 91a532c1
Pipeline #39683 passed with stages
in 2 minutes and 17 seconds
...@@ -110,8 +110,10 @@ export class TournamentService extends CrudService(Tournament, { ...@@ -110,8 +110,10 @@ export class TournamentService extends CrudService(Tournament, {
cache.id = id; cache.id = id;
cache.noAnalytics = noAnalytics; cache.noAnalytics = noAnalytics;
cache.tournament = result.data; cache.tournament = result.data;
cache.participants = result.data?.participants || []; cache.participants = result.data.participants || [];
cache.matches = result.data?.matches || []; cache.matches = result.data.matches || [];
cache.tournament.participants = undefined;
cache.tournament.matches = undefined;
return cache; return cache;
}); });
const tournament = Object.assign(new Tournament(), res.tournament); const tournament = Object.assign(new Tournament(), res.tournament);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment