Skip to content

Commit

Permalink
fix(core/group): prevent null pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
nuke-ellington committed Aug 11, 2022
1 parent 7602def commit d22abe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/group/group.tsx
Expand Up @@ -151,7 +151,7 @@ export class Group {
item.selected = index === this.index;
item.index = index;
item.classList.remove('last');
if (!this.footer.children.length && index === this.groupItems.length - 1) {
if (!this.footer?.children.length && index === this.groupItems.length - 1) {
item.classList.add('last');
}
});
Expand Down

0 comments on commit d22abe0

Please sign in to comment.