Skip to content

Commit 89aea81

Browse files
committed
less code
1 parent 200792f commit 89aea81

File tree

1 file changed

+1
-3
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+1
-3
lines changed

services/static-webserver/client/source/class/osparc/dashboard/CardBase.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ qx.Class.define("osparc.dashboard.CardBase", {
220220
const groupProductEveryone = groupsStore.getEveryoneProductGroup();
221221
const organizations = groupsStore.getOrganizations();
222222
const myGroupId = groupsStore.getMyGroupId();
223-
const everyoneGid = groupEveryone.getGroupId();
224-
const productEveryoneGid = groupProductEveryone.getGroupId();
225223

226224
const groups = [];
227225
groups.push(groupEveryone);
@@ -263,7 +261,7 @@ qx.Class.define("osparc.dashboard.CardBase", {
263261
break;
264262
}
265263
let sharedGrpLabel = sharedGrps[i].getLabel();
266-
if ([everyoneGid, productEveryoneGid].includes(sharedGrps[i].getGroupId())) {
264+
if ([groupEveryone, groupProductEveryone].includes(sharedGrps[i])) {
267265
sharedGrpLabel = "Public";
268266
}
269267
if (!sharedGrpLabels.includes(sharedGrpLabel)) {

0 commit comments

Comments
 (0)