diff --git a/www/common/outer/team.js b/www/common/outer/team.js index 32ce35f3b..2bd43e1ea 100644 --- a/www/common/outer/team.js +++ b/www/common/outer/team.js @@ -1878,7 +1878,9 @@ define([ progress: 0 }; - var teams = store.proxy.teams = store.proxy.teams || {}; + if (!store.proxy.teams) { store.proxy.teams = {}; } + var teams = store.proxy.teams; + ctx.numberOfTeams = Object.keys(teams).length; // Listen for changes in our access rights (if another worker receives edit access)