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,6 +97,7 @@ export const useContextMenuConnectionHandlers = () => {
}, },
}); });
if (status === ShipSizeStatus.small) {
outCommand({ outCommand({
type: OutCommand.updateConnectionMassStatus, type: OutCommand.updateConnectionMassStatus,
data: { data: {
@@ -105,6 +106,7 @@ export const useContextMenuConnectionHandlers = () => {
value: MassState.normal, value: MassState.normal,
}, },
}); });
}
}, []); }, []);
const onToggleMassSave = useCallback((locked: boolean) => { const onToggleMassSave = useCallback((locked: boolean) => {