Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing null-check for user-role in user-popover-component. #19774

Merged
merged 4 commits into from
Sep 23, 2023

Conversation

0x2aff
Copy link
Contributor

@0x2aff 0x2aff commented Sep 23, 2023

Should fix #19773

The user-popover component is missing a null-check for the Directus user role. Hovering over the display of a user without a role will lead to the rendering problem described in the issue.

Just added the null-check. If the user has no active role this means that the popover will only show the active status without role.

Maybe it would be better to add the information that the user has no active role?

With role:
image

Without role:
image

Just added the null-check. If the user has no active role this means that the popover will only show the active status without role. Maybe it would be better to show here the information that the user does not have a role assigned?
@changeset-bot
Copy link

changeset-bot bot commented Sep 23, 2023

🦋 Changeset detected

Latest commit: a023dbd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@directus/app Patch
@directus/api Patch
directus Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@0x2aff 0x2aff force-pushed the fix/19773_AvatarDisplayNotFound branch from dd63dc6 to fcc8d43 Compare September 23, 2023 09:31
Copy link
Contributor

@DanielBiegler DanielBiegler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@paescuj paescuj merged commit 95aaae5 into directus:main Sep 23, 2023
6 checks passed
@github-actions github-actions bot added this to the Next Release milestone Sep 23, 2023
@0x2aff 0x2aff deleted the fix/19773_AvatarDisplayNotFound branch September 23, 2023 20:29
br-rafaelbarros pushed a commit to personal-forks/directus-source that referenced this pull request Nov 7, 2023
…ctus#19774)

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avatar displays ID if not set
3 participants