From d44176f86c7c3000647940ac1fb5d745b4e600d7 Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Thu, 21 Sep 2023 11:11:54 +0200 Subject: [PATCH] change cover structure for radio fix #15 --- src/store/modules/radios/actions.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/store/modules/radios/actions.js b/src/store/modules/radios/actions.js index 69790b6..2f9139b 100644 --- a/src/store/modules/radios/actions.js +++ b/src/store/modules/radios/actions.js @@ -44,9 +44,7 @@ export default { let h = context.rootGetters.headers; h.headers["content-type"] = "multipart/form-data"; axios.put(context.rootGetters.server + "/api/radios/" + radio._id + "/cover", formData, h).then((res) => { - radio.cover32 = res.data.cover32; - radio.cover64 = res.data.cover64; - radio.cover128 = res.data.cover128; + radio.covers = res.data.covers; context.dispatch("loadRadios", true); }); }