Fix bug with interval
This commit is contained in:
parent
6d0fcc13fb
commit
877daf0a1e
@ -196,9 +196,11 @@ setInterval(() => {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
if(tasks.length != cTasks.length) {
|
if(tasks.length != cTasks.length) {
|
||||||
ResetContent();
|
ResetContent();
|
||||||
|
cTasks.forEach(task => {
|
||||||
var publication = CreatePublication(task.publication, task.connectorName);
|
var publication = CreatePublication(task.publication, task.connectorName);
|
||||||
publication.addEventListener("click", (event) => ShowPublicationViewerWindow(task.publication.internalId, event));
|
publication.addEventListener("click", (event) => ShowPublicationViewerWindow(task.publication.internalId, event));
|
||||||
tasksContent.appendChild(publication);
|
tasksContent.appendChild(publication);
|
||||||
|
})
|
||||||
|
|
||||||
tasks = cTasks;
|
tasks = cTasks;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user