mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 13:58:12 +00:00
chore: removed obsolete logs
This commit is contained in:
@@ -243,8 +243,6 @@ export default defineComponent({
|
|||||||
const headLocoName = this.train.stockList[0];
|
const headLocoName = this.train.stockList[0];
|
||||||
const headLocoVehicleData = this.apiStore.vehiclesData?.find((v) => v.name == headLocoName);
|
const headLocoVehicleData = this.apiStore.vehiclesData?.find((v) => v.name == headLocoName);
|
||||||
|
|
||||||
console.log(headLocoName, headLocoVehicleData);
|
|
||||||
|
|
||||||
// Omit speed check for head vehicle if there's no data for it
|
// Omit speed check for head vehicle if there's no data for it
|
||||||
if (!headLocoName || !headLocoVehicleData || !headLocoVehicleData.group.massSpeeds)
|
if (!headLocoName || !headLocoVehicleData || !headLocoVehicleData.group.massSpeeds)
|
||||||
return vehicleMaxSpeed;
|
return vehicleMaxSpeed;
|
||||||
@@ -266,7 +264,6 @@ export default defineComponent({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const massMaxSpeed = massKey ? massSpeeds[massKey] : Infinity;
|
const massMaxSpeed = massKey ? massSpeeds[massKey] : Infinity;
|
||||||
console.log(massMaxSpeed);
|
|
||||||
|
|
||||||
return Math.min(massMaxSpeed, vehicleMaxSpeed);
|
return Math.min(massMaxSpeed, vehicleMaxSpeed);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user