Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Fix null role response from users fetch #871

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

kimlisa
Copy link
Contributor

@kimlisa kimlisa commented Jun 7, 2022

Description

a user ran into an issue in the UI where cannot read properties of null (reading 'sort') when listing users: https://goteleport.slack.com/archives/CEZH6UL64/p1654536009001459

I was able to replicate this issue by modifying a user's yaml file through tctl and delete the role field, and tctl create user.yaml -f. A user can exist with no roles which returns as null from the back, which wasn't handled in the UI.

@kimlisa kimlisa force-pushed the lisa/fix-null-user-role-array branch from 1234167 to fc4d55b Compare June 7, 2022 19:39
@kimlisa kimlisa merged commit 18347b5 into master Jun 7, 2022
@kimlisa kimlisa deleted the lisa/fix-null-user-role-array branch June 7, 2022 20:22
kimlisa added a commit that referenced this pull request Jun 7, 2022
kimlisa added a commit to gravitational/teleport that referenced this pull request Jun 7, 2022
bbb35a39 Fix null role response from users fetch (gravitational/webapps#871) (gravitational/webapps#872) gravitational/webapps@bbb35a39

[source: -w teleport-v9] [target: -t branch/v9]
kimlisa added a commit to gravitational/teleport that referenced this pull request Jun 8, 2022
bbb35a39 Fix null role response from users fetch (gravitational/webapps#871) (gravitational/webapps#872) gravitational/webapps@bbb35a39

[source: -w teleport-v9] [target: -t branch/v9]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants