Skip to content

Commit 9c02ee3

Browse files
Continue polling by calling fetchLoop again removed
1 parent bfd92f8 commit 9c02ee3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/frontend/wwwroot/task/task.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -789,11 +789,7 @@
789789
// Update the lastDataHash to the new hash
790790
lastDataHash = newDataHash;
791791

792-
// Continue polling by calling fetchLoop again
793-
setTimeout(
794-
() => fetchLoop(id),
795-
Number(sessionStorage.getItem("apiRefreshRate"))
796-
);
792+
797793
} catch (error) {
798794
console.error("Error in fetchLoop:", error);
799795
}

0 commit comments

Comments
 (0)