Fix wrong joblist additions.

This commit is contained in:
Patrick Jentsch 2019-11-07 11:06:16 +01:00
parent 76fcb01186
commit d420b80ac5

View File

@ -24,7 +24,8 @@ class JobList extends List {
pathArray = operation.path.split("/").slice(1); pathArray = operation.path.split("/").slice(1);
switch(operation.op) { switch(operation.op) {
case "add": case "add":
if (pathArray[1] === "results") {break;} console.log(pathArray);
if (pathArray[1].includes("results")) {break;}
this.addJob(operation.value); this.addJob(operation.value);
this.update(); this.update();
List.updatePagination(this); List.updatePagination(this);