We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57b400c commit 3094b05Copy full SHA for 3094b05
src/frontend/app/features/cloud-foundry/services/cloud-foundry-endpoint.service.ts
@@ -222,7 +222,8 @@ export class CloudFoundryEndpointService {
222
return this.allApps$.pipe(
223
filter(allApps => !!allApps),
224
map(allApps => {
225
- const orgSpaces = org.entity.spaces.map(s => s.metadata.guid);
+ const spaces = org.entity.spaces || [];
226
+ const orgSpaces = spaces.map(s => s.metadata.guid);
227
return allApps.filter(a => orgSpaces.indexOf(a.entity.space_guid) !== -1);
228
})
229
);
0 commit comments