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 SpaCyNLPPipelineModelList extends ResourceList {
this.listjs.list.addEventListener('click', (event) => {this.onClick(event)});
this.isInitialized = false;
this.userId = listContainerElement.dataset.userId;
if (this.userId === undefined) {return;}
app.subscribeUser(this.userId).then((response) => {
app.socket.on('PATCH', (patch) => {
if (this.isInitialized) {this.onPatch(patch);}