File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
services/static-webserver/client/source/class/osparc/store Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -144,12 +144,17 @@ qx.Class.define("osparc.store.Groups", {
144144 } ,
145145
146146 getAllMyGroupIds : function ( ) {
147- return [
147+ const allMyGroupIds = [
148148 this . getMyGroupId ( ) ,
149- ...this . getOrganizationIds ( ) . map ( gId => parseInt ( gId ) ) ,
150- this . getEveryoneProductGroup ( ) . getGroupId ( ) ,
151- this . getEveryoneGroup ( ) . getGroupId ( ) ,
152- ]
149+ ...this . getOrganizationIds ( ) . map ( gId => parseInt ( gId ) )
150+ ] ;
151+ if ( this . getEveryoneProductGroup ( ) ) {
152+ allMyGroupIds . push ( this . getEveryoneProductGroup ( ) . getGroupId ( ) ) ;
153+ }
154+ if ( this . getEveryoneGroup ( ) ) {
155+ allMyGroupIds . push ( this . getEveryoneGroup ( ) . getGroupId ( ) ) ;
156+ }
157+ return allMyGroupIds ;
153158 } ,
154159
155160 getGroup : function ( groupId ) {
You can’t perform that action at this time.
0 commit comments