From 54d1691d192be824fb9f22ceb5dabb748a07750f Mon Sep 17 00:00:00 2001 From: alpha02x Date: Wed, 28 May 2025 07:52:46 +0000 Subject: [PATCH] fix(Signatures): small wh size is now passed from signature to connection --- .../SystemLinkSignatureDialog/SystemLinkSignatureDialog.tsx | 2 +- .../components/SignatureSettings/SignatureSettings.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/hooks/Mapper/components/mapInterface/components/SystemLinkSignatureDialog/SystemLinkSignatureDialog.tsx b/assets/js/hooks/Mapper/components/mapInterface/components/SystemLinkSignatureDialog/SystemLinkSignatureDialog.tsx index 574e9561..d816ac1d 100644 --- a/assets/js/hooks/Mapper/components/mapInterface/components/SystemLinkSignatureDialog/SystemLinkSignatureDialog.tsx +++ b/assets/js/hooks/Mapper/components/mapInterface/components/SystemLinkSignatureDialog/SystemLinkSignatureDialog.tsx @@ -146,7 +146,7 @@ export const SystemLinkSignatureDialog = ({ data, setVisible }: SystemLinkSignat } const whShipSize = getWhSize(wormholes, signature.type); - if (whShipSize) { + if (whShipSize !== undefined && whShipSize !== null) { await outCommand({ type: OutCommand.updateConnectionShipSizeType, data: { diff --git a/assets/js/hooks/Mapper/components/mapRootContent/components/SignatureSettings/SignatureSettings.tsx b/assets/js/hooks/Mapper/components/mapRootContent/components/SignatureSettings/SignatureSettings.tsx index 4bc7adbb..1eb22ca9 100644 --- a/assets/js/hooks/Mapper/components/mapRootContent/components/SignatureSettings/SignatureSettings.tsx +++ b/assets/js/hooks/Mapper/components/mapRootContent/components/SignatureSettings/SignatureSettings.tsx @@ -67,8 +67,8 @@ export const SignatureSettings = ({ systemId, show, onHide, signatureData }: Map if (values.type) { const whShipSize = getWhSize(wormholes, values.type); - if (whShipSize) { - outCommand({ + if (whShipSize !== undefined && whShipSize !== null) { + await outCommand({ type: OutCommand.updateConnectionShipSizeType, data: { source: systemId,