mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-04 03:58:11 +00:00
refactor: adjusted to new API format
This commit is contained in:
@@ -69,8 +69,6 @@ export default defineComponent({
|
||||
|
||||
const isTractionUnit = /^([a-zA-Z\d]{0,}-\d{0,})/.test(type);
|
||||
|
||||
console.log(type, isTractionUnit);
|
||||
|
||||
if (isTractionUnit) {
|
||||
const [locoType, spawnProps] = type.split(',');
|
||||
vehicle = this.store.locoDataList.find((loco) => loco.type == locoType) || null;
|
||||
|
||||
Reference in New Issue
Block a user