mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-12-10 05:55:34 +00:00
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:
@@ -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;
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user