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-avatar-group): prevent console error when no items are present #9587

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

kgogov
Copy link
Member

@kgogov kgogov commented Jul 30, 2024

Added a null-check in the firstAvatarSize getter to prevent a TypeError when the component is initialized without items. This ensures that the component behaves correctly and does not throw errors in the console when it is first loaded or when no items are present.

Fixes #9581

@kgogov kgogov requested a review from nnaydenow July 30, 2024 12:30
@kgogov kgogov force-pushed the avatar-group-fix branch from c17215b to 7393ba0 Compare July 31, 2024 06:52
Added a null-check in the `firstAvatarSize` getter to prevent a
TypeError when the component is initialized without items. This ensures
that the component behaves correctly and does not throw errors in the
console when it is first loaded or when no items are present.

Fixes #9581
@kgogov kgogov merged commit 4f832bd into main Aug 1, 2024
10 checks passed
@kgogov kgogov deleted the avatar-group-fix branch August 1, 2024 13:12
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.

[ui5-avatar-group]: error in console
2 participants