From 40eeb1128cd4f8e882a1cb8a90b95bd1f40af744 Mon Sep 17 00:00:00 2001
From: Gilgard <Hjelljord.alida@gmail.com>
Date: Fri, 6 May 2022 10:24:52 +0200
Subject: [PATCH] bugfix

---
 src/components/ItemComponents/EditItemForm.vue | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/components/ItemComponents/EditItemForm.vue b/src/components/ItemComponents/EditItemForm.vue
index 893e892..d14a3d0 100644
--- a/src/components/ItemComponents/EditItemForm.vue
+++ b/src/components/ItemComponents/EditItemForm.vue
@@ -381,7 +381,7 @@ export default {
         const id = await ImageService.postNewImage(res);
 
         const API_URL = process.env.VUE_APP_BASEURL;
-        that.updateItem.images.push(API_URL + "images/" + id);
+        that.images.push(API_URL + "images/" + id);
       };
       fileReader.readAsArrayBuffer(image);
     },
@@ -450,7 +450,6 @@ export default {
     this.initialItem = item;
     this.communities = await CommunityService.getUserCommunities();
     this.images = await ListingService.getItemPictures(itemID);
-    console.log(this.images);
 
     let initialCategories = [];
     for (let i in this.initialItem.categoryNames) {
-- 
GitLab