We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00595f3 commit 02b622cCopy full SHA for 02b622c
src/components/NewMatchForm.vue
@@ -419,7 +419,14 @@ export default {
419
async created() {
420
this.servers = await this.GetAllAvailableServers();
421
if (this.IsAnyAdmin(this.user)) this.teams = await this.GetAllTeams();
422
- else this.teams = await this.GetMyTeams();
+ else {
423
+ let tmpPublicTeams = await this.GetAllTeams();
424
+ this.teams = await this.GetMyTeams();
425
+ tmpPublicTeams.forEach(async team => {
426
+ if (typeof this.teams === "string") this.teams = [];
427
+ if (team.public_team == 1) this.teams.push(team);
428
+ });
429
+ }
430
this.seasons = await this.GetMyAvailableSeasons();
431
if (typeof this.seasons == "string") this.seasons = [];
432
this.MapList = await this.GetUserEnabledMapList(this.user.id);
0 commit comments