Skip to content

Commit

Permalink
fix: remove loading of jobs from places
Browse files Browse the repository at this point in the history
When moving from the places mode to the optimization tab, the first click anywhere on the map created a job from the place saved in the previous URL.
If no place was actively selected, this was the map centre.
To the user this may seem as though a job was created out of nowhere and appears as buggy behaviour, which is why it is removed for now.
  • Loading branch information
blackbirdem committed Jul 30, 2024
1 parent 3bbfc35 commit a24944b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,6 @@ export default {
for (const [i, place] of places.entries()) {
jobs.push(new Job(place.lng, place.lat, place.placeName, jobProps[i]))
}
} else if (places.length > 0) {
for (const [i, place] of places.entries()) {
jobs.push(new Job(place.lng, place.lat, place.placeName, {id: i+1}))
}
} else if (this.jobs === undefined && storedJobs) {
for (const job of JSON.parse(storedJobs)) {
jobs.push(Job.fromObject(job))
Expand Down

0 comments on commit a24944b

Please sign in to comment.