From 962adb1dc7ddd3ace7dee3852d3bc81364268ff3 Mon Sep 17 00:00:00 2001 From: mnvdk Date: Mon, 27 Apr 2020 02:33:14 +0200 Subject: [PATCH] song_Skin should be song_skin, info_Fill should be info_fill --- public/src/js/loader.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/src/js/loader.js b/public/src/js/loader.js index 1b5bc26..60b7b6f 100644 --- a/public/src/js/loader.js +++ b/public/src/js/loader.js @@ -108,11 +108,11 @@ class Loader{ this.addPromise(this.ajax("/api/categories").then(cats => { assets.categories = JSON.parse(cats) assets.categories.forEach(cat => { - if(cat.song_Skin){ - cat.songSkin = cat.song_Skin //rename the song_skin property and add category title to categories array - delete cat.song_Skin - cat.songSkin.infoFill = cat.songSkin.info_Fill - delete cat.songSkin.info_Fill + if(cat.song_skin){ + cat.songSkin = cat.song_skin //rename the song_skin property and add category title to categories array + delete cat.song_skin + cat.songSkin.infoFill = cat.songSkin.info_fill + delete cat.songSkin.info_fill } });