Frontend: Fix albums view

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-05-31 02:33:18 +02:00
parent d0199598d0
commit 37ee277599
6 changed files with 9 additions and 6 deletions

View file

@ -187,7 +187,10 @@
const settings = {};
let categories = [{"value": "", "text": this.$gettext("All Categories")}];
categories = categories.concat(this.$config.values.albumCategories.map(cat => { return {"value": cat, "text": cat}; }));
if(this.$config.values.albumCategories) {
categories = categories.concat(this.$config.values.albumCategories.map(cat => { return {"value": cat, "text": cat}; }));
}
return {
categories: categories,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long