diff --git a/web/app/src/components/JobsTable.vue b/web/app/src/components/JobsTable.vue index 413145eb..ae1a6cd6 100644 --- a/web/app/src/components/JobsTable.vue +++ b/web/app/src/components/JobsTable.vue @@ -123,11 +123,17 @@ export default { processJobUpdate(jobUpdate) { // updateData() will only overwrite properties that are actually set on // jobUpdate, and leave the rest as-is. - this.tabulator.updateData([jobUpdate]) - .then(this.sortData); + if (this.tabulator.initialized) { + this.tabulator.updateData([jobUpdate]) + .then(this.sortData); + } this._refreshAvailableStatuses(); }, processNewJob(jobUpdate) { + if (this.tabulator.initialized) { + this.tabulator.updateData([jobUpdate]) + .then(this.sortData); + } this.tabulator.addData([jobUpdate]) .then(this.sortData); this._refreshAvailableStatuses(); diff --git a/web/app/src/components/TasksTable.vue b/web/app/src/components/TasksTable.vue index e2edf6a5..b629dc03 100644 --- a/web/app/src/components/TasksTable.vue +++ b/web/app/src/components/TasksTable.vue @@ -128,8 +128,10 @@ export default { processTaskUpdate(taskUpdate) { // updateData() will only overwrite properties that are actually set on // taskUpdate, and leave the rest as-is. - this.tabulator.updateData([taskUpdate]) - .then(this.sortData); + if (this.tabulator.initialized) { + this.tabulator.updateData([taskUpdate]) + .then(this.sortData); + } this._refreshAvailableStatuses(); },