Don't lowercase the assigned value

This commit is contained in:
mnvdk 2020-04-26 23:14:16 +02:00
parent 387d1268fd
commit 14629ad12a

View File

@ -42,10 +42,10 @@
this.categoryAliases = {}
assets.categories.forEach(cat => {
this.categoryAliases[cat.title.toLowerCase()] = cat.title.toLowerCase()
this.categoryAliases[cat.title.toLowerCase()] = cat.title
if(cat.aliases != null){
cat.aliases.forEach(alias => {
this.categoryAliases[alias.toLowerCase()] = cat.title.toLowerCase()
this.categoryAliases[alias.toLowerCase()] = cat.title
});
}
});