Skip to content

Commit

Permalink
fix: add vehicle if none exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Seli0303 committed May 21, 2024
1 parent 43900c8 commit be06a62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default {
}
context.manageJobs(id)
} else if (data.pickEditSource === 'vehicleStart') {
if (id > context.jobs.length) {
if (id > context.vehicles.length) {
let v = Vehicle.fromPlace(data.place)
v.setId(id)
context.vehicles.push(v)
Expand Down

0 comments on commit be06a62

Please sign in to comment.