From 5c052156e6b0e9d332c90a8fd9dafdb8c6b98ccf Mon Sep 17 00:00:00 2001 From: BiRabittoh Date: Sat, 12 Aug 2023 15:46:21 +0200 Subject: [PATCH] more polish --- artbound_python/static/script.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/artbound_python/static/script.js b/artbound_python/static/script.js index 87f51f2..cc97010 100644 --- a/artbound_python/static/script.js +++ b/artbound_python/static/script.js @@ -260,16 +260,14 @@ function getArtworks() { get_button.disabled = true; get_button.innerText = "🔄" postData("/", { month: month_value }).then((data) => { - - const new_data = data.map((element) => { + fanarts.push(...data.map((element) => { return { ...element, "enabled": 1, "rotated": 0, "watermark": { invert: "" }, }; - }); - fanarts.push(...new_data); + })); controls_div.hidden = false; updateOpacity(); updateFanartList();