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

fix(ui5-shellbar): check for profile correctly #1438

Merged
merged 1 commit into from
Apr 7, 2020

Conversation

vladitasev
Copy link
Contributor

@vladitasev vladitasev commented Apr 7, 2020

When profile was turned into a slot, the check whether there is a profile element provided, remained this.profile which is always truthy for a slot (since it's an array).
Additionally, the line show: this.profile which is supposed to be a Boolean, became an array, holding a reference to the ui5-avatar instance that the user passed, making it fail when transformed into JSON for the purpose of object comparison.

The fix is to check whether the avatar array is not empty.

closes: #1427

@vladitasev vladitasev merged commit a4f502b into master Apr 7, 2020
@vladitasev vladitasev deleted the shellbar-profile-fix branch April 7, 2020 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edge: ui5-shellbar - shellbar items are broken
4 participants