From a81b0dba2f96c1fd609aeb7497e0d56b5491edf9 Mon Sep 17 00:00:00 2001 From: Cohee Date: Thu, 20 Jul 2023 23:11:37 +0300 Subject: [PATCH] Don't remove bg uploader on backgrounds render --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index b63642410..febe2612d 100644 --- a/public/script.js +++ b/public/script.js @@ -962,7 +962,7 @@ async function getBackgrounds() { const getData = await response.json(); //background = getData; //console.log(getData.length); - $("#bg_menu_content").empty(); + $("#bg_menu_content").children('div').remove(); for (const bg of getData) { const template = getBackgroundFromTemplate(bg); $("#bg_menu_content").append(template);