Skip to content
Snippets Groups Projects
Commit d420b80a authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Fix wrong joblist additions.

parent 76fcb011
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,8 @@ class JobList extends List { ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment