Don't remove bg uploader on backgrounds render
This commit is contained in:
parent
d2e58c3455
commit
a81b0dba2f
|
@ -962,7 +962,7 @@ async function getBackgrounds() {
|
||||||
const getData = await response.json();
|
const getData = await response.json();
|
||||||
//background = getData;
|
//background = getData;
|
||||||
//console.log(getData.length);
|
//console.log(getData.length);
|
||||||
$("#bg_menu_content").empty();
|
$("#bg_menu_content").children('div').remove();
|
||||||
for (const bg of getData) {
|
for (const bg of getData) {
|
||||||
const template = getBackgroundFromTemplate(bg);
|
const template = getBackgroundFromTemplate(bg);
|
||||||
$("#bg_menu_content").append(template);
|
$("#bg_menu_content").append(template);
|
||||||
|
|
Loading…
Reference in New Issue