diff --git a/tabby-core/src/hotkeys.ts b/tabby-core/src/hotkeys.ts index 56acf98d..9a809ad5 100644 --- a/tabby-core/src/hotkeys.ts +++ b/tabby-core/src/hotkeys.ts @@ -209,6 +209,6 @@ export class AppHotkeyProvider extends HotkeyProvider { } static getProfileHotkeyName (profile: PartialProfile): string { - return profile.id!.replace(/\./g, '-') + return (profile.id ?? profile.name).replace(/\./g, '-') } }