From 953b06f43f39d73ae60b93ffb5733c2e3112a997 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 1 Mar 2020 15:20:16 +0100 Subject: [PATCH] skip invalid hotkey config (fixes #817) --- terminus-core/src/services/hotkeys.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terminus-core/src/services/hotkeys.service.ts b/terminus-core/src/services/hotkeys.service.ts index 8361a9f5..75ecc896 100644 --- a/terminus-core/src/services/hotkeys.service.ts +++ b/terminus-core/src/services/hotkeys.service.ts @@ -216,6 +216,9 @@ export class HotkeysService { if (typeof value === 'string') { value = [value] } + if (!(value instanceof Array)) { + continue + } if (value) { value = value.map((item: string | string[]) => typeof item === 'string' ? [item] : item) keys[key] = value