Skip to content

Commit a9ca93c

Browse files
authored
Fix job result timeseries selection. (#118)
* manually redraw when data changes but contains same column * add schema path to timeseries options to differentiate similarly named objects
1 parent 5927a8f commit a9ca93c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

dashboard/src/components/jobs/JobResults.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export default class JobResults extends Vue {
150150
this.system,
151151
result.definition.schema_path
152152
);
153-
const label = `${systemComponent.name} ${result.definition.type}`;
153+
const label = `${systemComponent.name} ${result.definition.type} (${result.definition.schema_path})`;
154154
// @ts-expect-error
155155
labelled[result.object_id] = label;
156156
});

dashboard/src/components/jobs/data/Timeseries.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ export default class TimeseriesPlot extends Vue {
9090
}
9191
@Watch("timeseriesData")
9292
changeData() {
93+
const originalCol = this.column;
9394
this.column = this.availableFields[0];
95+
if (this.column == originalCol) {
96+
this.redraw();
97+
}
9498
}
9599
downloadData(contentType: string) {
96100
this.$emit("download-timeseries", contentType);

0 commit comments

Comments
 (0)