Fix some list problems

This commit is contained in:
Patrick Jentsch
2023-02-10 14:51:47 +01:00
parent 1767ceee01
commit 874c963cc4
7 changed files with 8 additions and 1 deletions

View File

@ -11,6 +11,7 @@ class JobInputList extends ResourceList {
this.isInitialized = false;
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);}