From 48a51dfd541ec6fa68ffd501de0e280ba0fd7a21 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 8 Feb 2024 06:57:52 -0500 Subject: Fix hotkey helper not properly returning attributesArray (#651) --- ext/js/input/hotkey-help-controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/js/input/hotkey-help-controller.js b/ext/js/input/hotkey-help-controller.js index a75ab9db..dbb430dc 100644 --- a/ext/js/input/hotkey-help-controller.js +++ b/ext/js/input/hotkey-help-controller.js @@ -151,7 +151,7 @@ export class HotkeyHelpController { if (typeof hotkey !== 'string') { return null; } const data = /** @type {unknown} */ (parseJson(hotkey)); if (!Array.isArray(data)) { return null; } - const [action, attributes, values] = data; + const [action, attributes, values] = /** @type {unknown[]} */ (data); if (typeof action !== 'string') { return null; } /** @type {string[]} */ const attributesArray = []; @@ -169,7 +169,7 @@ export class HotkeyHelpController { return { action: global ? action.substring(globalPrexix.length) : action, global, - attributes, + attributes: attributesArray, values, defaultAttributeValues }; -- cgit v1.2.3