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();
|
||||||
var publication = CreatePublication(task.publication, task.connectorName);
|
cTasks.forEach(task => {
|
||||||
publication.addEventListener("click", (event) => ShowPublicationViewerWindow(task.publication.internalId, event));
|
var publication = CreatePublication(task.publication, task.connectorName);
|
||||||
tasksContent.appendChild(publication);
|
publication.addEventListener("click", (event) => ShowPublicationViewerWindow(task.publication.internalId, event));
|
||||||
|
tasksContent.appendChild(publication);
|
||||||
|
})
|
||||||
|
|
||||||
tasks = cTasks;
|
tasks = cTasks;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user