fix(Map): Fixed problem with ship size change.

This commit is contained in:
achichenkov
2024-12-17 19:10:26 +03:00
parent b52b4eecca
commit 0e6bb7390b

View File

@@ -97,14 +97,16 @@ export const useContextMenuConnectionHandlers = () => {
}, },
}); });
outCommand({ if (status === ShipSizeStatus.small) {
type: OutCommand.updateConnectionMassStatus, outCommand({
data: { type: OutCommand.updateConnectionMassStatus,
source: edge.source, data: {
target: edge.target, source: edge.source,
value: MassState.normal, target: edge.target,
}, value: MassState.normal,
}); },
});
}
}, []); }, []);
const onToggleMassSave = useCallback((locked: boolean) => { const onToggleMassSave = useCallback((locked: boolean) => {