minor teams proxy optimization

pull/1/head
ansuz 3 years ago
parent 2fc6649883
commit 0d9939c894

@ -1878,7 +1878,9 @@ define([
progress: 0 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; ctx.numberOfTeams = Object.keys(teams).length;
// Listen for changes in our access rights (if another worker receives edit access) // Listen for changes in our access rights (if another worker receives edit access)

Loading…
Cancel
Save