From f86ecede9b024a71c4c1c9ea0e63e8397f0f749a Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Thu, 6 Jun 2024 22:39:30 +0100 Subject: [PATCH] Fixing bug introduced by the previous PR for ISSUE_764. The previous fix introduced a bug which caused Armour Selection to error, due to Armour modules being completely different to other modules of any other type --- src/app/components/AvailableModulesMenu.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/AvailableModulesMenu.jsx b/src/app/components/AvailableModulesMenu.jsx index 815cab51..87f188b6 100644 --- a/src/app/components/AvailableModulesMenu.jsx +++ b/src/app/components/AvailableModulesMenu.jsx @@ -322,7 +322,7 @@ export default class AvailableModulesMenu extends TranslatedComponent { for (let i = 0; i < sortedModules.length; i++) { let m = sortedModules[i]; // If m.grp is mh or mm, or m.symbol contains 'Missing' skip it - if (m.grp == 'mh' || m.grp == 'mm' || m.symbol.includes("Missing")) { + if (m.grp == 'mh' || m.grp == 'mm' || (typeof(m.symbol) !== 'undefined' && m.symbol.includes("Missing"))) { // If this is a missing module, skip it continue; }