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:
Sybren A. Stüvel 2022-05-06 11:59:52 +02:00
parent 7bda798009
commit 1cf3cb3344

View File

@ -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;
}