From 1cf3cb3344e193d8435200c59fac9e4dfb246330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 6 May 2022 11:59:52 +0200 Subject: [PATCH] Web: remove check on tabulator.initialized This check is no longer necessary now we wait with fetching the tasks/jobs until the `tableBuilt` event is received. --- web/app/src/components/TasksTable.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/web/app/src/components/TasksTable.vue b/web/app/src/components/TasksTable.vue index e316c728..c186dc58 100644 --- a/web/app/src/components/TasksTable.vue +++ b/web/app/src/components/TasksTable.vue @@ -87,11 +87,7 @@ export default { fetchTasks() { console.log("Fetching tasks for job", this.jobID); if (!this.jobID) { - // Prevent a warning when fetchTasks() is called before the tabulator is - // properly initialised. After initialisation the data is empty anyway. - if (this.tabulator.initialized) { - this.tabulator.setData([]); - } + this.tabulator.setData([]); return; }