Skip to content

Commit

Permalink
refactor: simplify expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Uli-Tiger committed Oct 17, 2024
1 parent a8dcf43 commit 698af6e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,11 @@ export class ConfiguratorGroupMenuComponent {
group: Configurator.Group,
currentGroupId?: string
): boolean {
let groupIdx = group.subGroups?.findIndex(
return !!group.subGroups?.find(
(subGroup) =>
this.isGroupSelected(subGroup.id, currentGroupId) ||
this.containsSelectedGroup(subGroup, currentGroupId)
);
return groupIdx !== -1;
}

/**
Expand Down

0 comments on commit 698af6e

Please sign in to comment.