-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix(ui/token): token page failing to render #9827
Conversation
} = entity; | ||
const displayNameSearchResult = info?.displayName || editableProperties?.displayName || entity.username; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool I know this is an improvement for sure. can we just call entityRegistry.getDisplayName(entity.type, entity)
here though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, we can simplify it by using entityRegistry.getDisplayName(entity.type, entity). Updated as per your suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved, but one final change I would like to see made, just not blocking
info: { displayName }, | ||
} = entity; | ||
const { editableProperties } = entity; | ||
const displayNameSearchResult = entityRegistry.getDisplayName(EntityType.CorpUser, entity); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we always know this will be a corpuser or could it be a corpGroup? I would just pass in entity.type
instead of hardcoding EntityType.CorpUser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we always showing corp users data in dropdown.
Checklist