Frontend: Fix year filter
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
a66d0887bd
commit
9f29b2eb90
1 changed files with 6 additions and 2 deletions
|
@ -253,9 +253,13 @@
|
|||
},
|
||||
yearOptions() {
|
||||
let result = [{"year": 0, "label": "All Years"}];
|
||||
for (let i = 0; i < this.config.years.length; i++) {
|
||||
result.push({"year": this.config.years[i], "label": this.config.years[i].toString()});
|
||||
|
||||
if (this.config.years) {
|
||||
for (let i = 0; i < this.config.years.length; i++) {
|
||||
result.push({"year": this.config.years[i], "label": this.config.years[i].toString()});
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue