Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Org space list - Deleting causes exceptions in other parts of the org page. #2393

Merged
merged 2 commits into from
Jun 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/frontend/app/features/cloud-foundry/cf.helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export function isSpaceDeveloper(user: CfUser, spaceGuid: string): boolean {
function hasRole(user: CfUser, guid: string, roleType: string) {
if (user[roleType]) {
const roles = user[roleType] as APIResource[];
return !!roles.find(o => o.metadata.guid === guid);
return !!roles.find(o => o ? o.metadata.guid === guid : false);
}
return false;
}
Expand Down