From 8fe06bfb9de822251cea84fe00d475b568fe2b77 Mon Sep 17 00:00:00 2001 From: mnvdk Date: Mon, 27 Apr 2020 02:22:18 +0200 Subject: [PATCH] renamed infoFill to info_Fill on in the database --- public/src/js/loader.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/src/js/loader.js b/public/src/js/loader.js index 8b2f90d..1b5bc26 100644 --- a/public/src/js/loader.js +++ b/public/src/js/loader.js @@ -108,8 +108,12 @@ class Loader{ this.addPromise(this.ajax("/api/categories").then(cats => { assets.categories = JSON.parse(cats) assets.categories.forEach(cat => { - cat.songSkin = cat.song_Skin //rename the song_skin property and add category title to categories array - delete cat.song_Skin + 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 + } }); assets.categories.push({