From 60ab6ece62079cb199af1145a7bdbc0f2b42a9da Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 15 Aug 2020 20:46:40 +0200 Subject: [PATCH] fixed tab context menu for custom tab colors --- terminus-core/src/tabContextMenu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminus-core/src/tabContextMenu.ts b/terminus-core/src/tabContextMenu.ts index e0262fab..6a701c4a 100644 --- a/terminus-core/src/tabContextMenu.ts +++ b/terminus-core/src/tabContextMenu.ts @@ -120,7 +120,7 @@ export class CommonOptionsContextMenu extends TabContextMenuItemProvider { }, { label: 'Color', - sublabel: COLORS.find(x => x.value === tab.color)!.name, + sublabel: COLORS.find(x => x.value === tab.color)?.name, submenu: COLORS.map(color => ({ label: color.name, type: 'radio',