From b755346ac05553b6b8721d5ba8f6cde752f21704 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Wed, 8 Dec 2021 21:01:48 +0100 Subject: [PATCH] fixed #5001 --- tabby-core/src/hotkeys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '-') } }