Skip to content

Commit 713c8ca

Browse files
committed
Acquire location data again after being cleared out
when hitting an empty dataset
1 parent 4e271fe commit 713c8ca

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
- Remove automatic key suffix for popover texts
5252
- Limit effective zoom level by new "Maximum zoom level" option
5353
- Fix transformation machinery for data in timeseries format
54+
- Acquire location data again after being cleared out when hitting an empty dataset
5455

5556
## v0.2.0
5657

src/worldmap_ctrl.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ export default class WorldmapCtrl extends MetricsPanelCtrl {
246246
onRefresh() {
247247
console.info('Refreshing panel');
248248
this.errors.reset('data');
249+
if (_.isEmpty(this.locations) && _.isEmpty(this.panel.snapshotLocationData)) {
250+
this.loadLocationData(true);
251+
}
249252
}
250253

251254
onDataSnapshotLoad(snapshotData) {

0 commit comments

Comments
 (0)