diff --git a/tabby-local/src/shells/wsl.ts b/tabby-local/src/shells/wsl.ts index 048fed5b..e58ca70f 100644 --- a/tabby-local/src/shells/wsl.ts +++ b/tabby-local/src/shells/wsl.ts @@ -62,7 +62,8 @@ export class WSLShellProvider extends ShellProvider { TERM: 'xterm-color', COLORTERM: 'truecolor', }, - icon: wslIconMap[defaultDistKey.DistributionName.value], + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + icon: wslIconMap[defaultDistKey.DistributionName.value] ?? wslIconMap.Linux, } shells.push(shell) } @@ -103,7 +104,8 @@ export class WSLShellProvider extends ShellProvider { TERM: 'xterm-color', COLORTERM: 'truecolor', }, - icon: wslIconMap[name], + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + icon: wslIconMap[name] ?? wslIconMap.Linux, } shells.push(shell) }