Commit 962adb1d authored by mnvdk's avatar mnvdk

song_Skin should be song_skin, info_Fill should be info_fill

parent 8fe06bfb
...@@ -108,11 +108,11 @@ class Loader{ ...@@ -108,11 +108,11 @@ class Loader{
this.addPromise(this.ajax("/api/categories").then(cats => { this.addPromise(this.ajax("/api/categories").then(cats => {
assets.categories = JSON.parse(cats) assets.categories = JSON.parse(cats)
assets.categories.forEach(cat => { assets.categories.forEach(cat => {
if(cat.song_Skin){ if(cat.song_skin){
cat.songSkin = cat.song_Skin //rename the song_skin property and add category title to categories array cat.songSkin = cat.song_skin //rename the song_skin property and add category title to categories array
delete cat.song_Skin delete cat.song_skin
cat.songSkin.infoFill = cat.songSkin.info_Fill cat.songSkin.infoFill = cat.songSkin.info_fill
delete cat.songSkin.info_Fill delete cat.songSkin.info_fill
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment