Ui/http request fixes (#7128)

* ensure dropdown updates selected item

* ensure no duplicate ticks

* handle case where counters are Dates instead of strings so bar chart filters in Storybook
This commit is contained in:
Noelle Daley
2019-07-16 16:26:49 -07:00
committed by GitHub
parent d3f527da62
commit f9268b8d09
3 changed files with 4 additions and 4 deletions

View File

@@ -43,8 +43,8 @@ export default Component.extend({
}
filteredCounters = counters.filter(counter => {
const year = counter.start_time.substr(0, 4);
return year === timeWindow;
const year = new Date(counter.start_time).getUTCFullYear();
return year.toString() === timeWindow;
});
return filteredCounters;
}),