From ae65af7bbf583af4714f0a9e0367e4ca126e58eb Mon Sep 17 00:00:00 2001 From: William Date: Thu, 12 Oct 2017 07:33:36 +0000 Subject: [PATCH] prevent crashing when no modifications are in the data (#160) --- src/app/components/InternalSlot.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/InternalSlot.jsx b/src/app/components/InternalSlot.jsx index 9f06fa5d..90c96279 100644 --- a/src/app/components/InternalSlot.jsx +++ b/src/app/components/InternalSlot.jsx @@ -26,7 +26,7 @@ export default class InternalSlot extends Slot { let classRating = m.class + m.rating; let { drag, drop, ship } = this.props; let { termtip, tooltip } = this.context; - let validMods = Modifications.modules[m.grp].modifications || []; + let validMods = (Modifications.modules[m.grp] ? Modifications.modules[m.grp].modifications : []); let showModuleResistances = Persist.showModuleResistances(); // Modifications tooltip shows blueprint and grade, if available