Skip to content

Commit 3094b05

Browse files
nwmacrichard-cox
authored andcommitted
Fix for bug causing intermittment E2E Test failures on org tests (#3366)
1 parent 57b400c commit 3094b05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/frontend/app/features/cloud-foundry/services/cloud-foundry-endpoint.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ export class CloudFoundryEndpointService {
222222
return this.allApps$.pipe(
223223
filter(allApps => !!allApps),
224224
map(allApps => {
225-
const orgSpaces = org.entity.spaces.map(s => s.metadata.guid);
225+
const spaces = org.entity.spaces || [];
226+
const orgSpaces = spaces.map(s => s.metadata.guid);
226227
return allApps.filter(a => orgSpaces.indexOf(a.entity.space_guid) !== -1);
227228
})
228229
);

0 commit comments

Comments
 (0)