Use job id util when splicing job loc
This commit is contained in:
@@ -946,7 +946,7 @@ function deleteJobLocationCommand(command, params, client) {
|
|||||||
let tempIndex = closestJobLocation.index;
|
let tempIndex = closestJobLocation.index;
|
||||||
let tempJob = closestJobLocation.job;
|
let tempJob = closestJobLocation.job;
|
||||||
deleteJobLocation(closestJobLocation);
|
deleteJobLocation(closestJobLocation);
|
||||||
getJobData(tempJob).locations.splice(tempIndex, 1);
|
getJobData(getJobIdFromDatabaseId(tempJob)).locations.splice(tempIndex, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user