From b4ca18d7c2cfa3ca2bfc904c93d18cdc87d63893 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 19 Feb 2020 17:26:31 +0100 Subject: [PATCH] Fix access modal bug --- www/common/inner/access.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/common/inner/access.js b/www/common/inner/access.js index d1129ca9d..0b55b8476 100644 --- a/www/common/inner/access.js +++ b/www/common/inner/access.js @@ -186,8 +186,8 @@ define([ } var _teamsData = Util.clone(teamsData); - Object.keys(teamsData).forEach(function (id) { - var t = teamsData[id]; + Object.keys(_teamsData).forEach(function (id) { + var t = _teamsData[id]; t.teamId = id; if (owners.indexOf(t.edPublic) !== -1 || pending_owners.indexOf(t.edPublic) !== -1) { delete _teamsData[id]; @@ -534,8 +534,8 @@ define([ } var _teamsData = Util.clone(teamsData); - Object.keys(teamsData).forEach(function (id) { - var t = teamsData[id]; + Object.keys(_teamsData).forEach(function (id) { + var t = _teamsData[id]; t.teamId = id; if (owners.indexOf(t.edPublic) !== -1 || allowed.indexOf(t.edPublic) !== -1) { delete _teamsData[id];