wip ref(core): resolveProfileGroupName return groupId if no name found

This commit is contained in:
Clem 2023-08-04 14:39:06 +02:00
parent 30936b739e
commit 951c69b31a

View file

@ -496,10 +496,10 @@ export class ProfilesService {
}
/**
* Resolve and return ProfileGroup from ProfileGroup ID
* Resolve and return ProfileGroup Name from ProfileGroup ID
*/
resolveProfileGroupName (groupId: string): string {
return this.config.store.groups.find(g => g.id === groupId)?.name ?? ''
return this.config.store.groups.find(g => g.id === groupId)?.name ?? groupId
}
}