Skip to content

SecuredByRole fails if app roles are not loaded #3752

@marrobi

Description

@marrobi

If the securedbyrole element renders prior to approles being loaded get an issues referencing an undefined variable.

Needs to update to:

    (workspaceRoles?.some(x => props.allowedWorkspaceRoles?.includes(x)) || appRoles?.roles?.some(x => props.allowedAppRoles?.includes(x)))

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions