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