diff --git a/timeline-chart/src/layer/time-graph-chart.ts b/timeline-chart/src/layer/time-graph-chart.ts index cd3faea..abeb910 100644 --- a/timeline-chart/src/layer/time-graph-chart.ts +++ b/timeline-chart/src/layer/time-graph-chart.ts @@ -188,18 +188,22 @@ export class TimeGraphChart extends TimeGraphChartLayer { update )) { this.fetching = true; - const rowData = await this.providers.dataProvider(viewRange, resolution); - if (rowData) { - this.providedResolution = rowData.resolution; - this.providedRange = rowData.range; - this.setRowModel(rowData.rows); - this.removeChildren(); - this.addRows(this.rows, this.rowController.rowHeight); - if (this.isNavigating) { - this.selectStateInNavigation(); + try { + const rowData = await this.providers.dataProvider(viewRange, resolution); + if (rowData) { + this.providedResolution = rowData.resolution; + this.providedRange = rowData.range; + this.setRowModel(rowData.rows); + this.removeChildren(); + this.addRows(this.rows, this.rowController.rowHeight); + if (this.isNavigating) { + this.selectStateInNavigation(); + } } + } finally { + this.fetching = false; + this.isNavigating = false; } - this.fetching = false; } }