From 700089e381026013fe246760880092f40b0a989f Mon Sep 17 00:00:00 2001 From: Guarzo Date: Thu, 27 Nov 2025 04:12:59 +0000 Subject: [PATCH] fix: defensive check for undefined excluded systems --- .../mapInterface/widgets/WSystemKills/hooks/useSystemKills.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/hooks/Mapper/components/mapInterface/widgets/WSystemKills/hooks/useSystemKills.ts b/assets/js/hooks/Mapper/components/mapInterface/widgets/WSystemKills/hooks/useSystemKills.ts index c6b15275..62c1114b 100644 --- a/assets/js/hooks/Mapper/components/mapInterface/widgets/WSystemKills/hooks/useSystemKills.ts +++ b/assets/js/hooks/Mapper/components/mapInterface/widgets/WSystemKills/hooks/useSystemKills.ts @@ -31,7 +31,7 @@ export function useSystemKills({ systemId, outCommand, showAllVisible = false, s storedSettings: { settingsKills }, } = useMapRootState(); - const excludedSystems = useStableValue(settingsKills.excludedSystems); + const excludedSystems = useStableValue(settingsKills.excludedSystems ?? []); const effectiveSystemIds = useMemo(() => { if (showAllVisible) {