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.
This commit is contained in:
parent
7bda798009
commit
1cf3cb3344
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user