1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-23 05:03:36 +03:00

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
}
}