From 491e24f0a3339d3cbbe239223a974b489995f194 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Fri, 31 Mar 2023 09:32:59 +0200 Subject: [PATCH] Fix jobinputlist --- app/static/js/ResourceLists/JobInputList.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/static/js/ResourceLists/JobInputList.js b/app/static/js/ResourceLists/JobInputList.js index 7f1a5105..97a8dd14 100644 --- a/app/static/js/ResourceLists/JobInputList.js +++ b/app/static/js/ResourceLists/JobInputList.js @@ -12,11 +12,7 @@ class JobInputList extends ResourceList { this.userId = listContainerElement.dataset.userId; this.jobId = listContainerElement.dataset.jobId; if (this.userId === undefined || this.jobId === undefined) {return;} - app.subscribeUser(this.userId).then((response) => { - app.socket.on('PATCH', (patch) => { - if (this.isInitialized) {this.onPatch(patch);} - }); - }); + app.subscribeUser(this.userId); app.getUser(this.userId).then((user) => { this.add(Object.values(user.jobs[this.jobId].inputs)); this.isInitialized = true;