From 080ffa09a6de9caded394de2a24c8e5b3ff25c39 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 6 Jan 2020 10:43:04 +0100 Subject: [PATCH] Fix 'team is undefined' error --- www/common/outer/team.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/outer/team.js b/www/common/outer/team.js index c41f728a0..759d08817 100644 --- a/www/common/outer/team.js +++ b/www/common/outer/team.js @@ -1035,6 +1035,7 @@ define([ var teamData = Util.find(ctx, ['store', 'proxy', 'teams', teamId]); if (!teamData) { return true; } var team = ctx.teams[teamId]; + if (!team) { return true; } var secret = Hash.getSecrets('team', hash || teamData.roHash, teamData.password); // Upgrade the listmap if we can