Use group identifiers from available groups

This commit is contained in:
Sergio Padrino 2023-07-30 10:33:48 +02:00
parent f3ff8b1b9e
commit bbb3e41bdd

View file

@ -291,12 +291,9 @@ export class BranchList extends React.Component<
}
private getGroupAriaLabel = (group: number) => {
const GroupIdentifiers: ReadonlyArray<BranchGroupIdentifier> = [
'default',
'recent',
'other',
]
return this.getGroupLabel(GroupIdentifiers[group])
const identifier = this.state.groups[group]
.identifier as BranchGroupIdentifier
return this.getGroupLabel(identifier)
}
private renderGroupHeader = (label: string) => {