Skip to content
Snippets Groups Projects
Commit 75f28e94 authored by Gilgard's avatar Gilgard
Browse files

lint

parent f719d03a
No related branches found
No related tags found
1 merge request!133Edit listing
Pipeline #181693 failed
......@@ -383,7 +383,8 @@ export default {
for (let i = 0; i <= this.updatedItem.selectedCommunities.length; i++) {
if (
this.updatedItem.selectedCommunityId == this.updatedItem.selectedCommunities[i]
this.updatedItem.selectedCommunityId ==
this.updatedItem.selectedCommunities[i]
) {
const index = this.updatedItem.selectedCommunities.indexOf(
this.updatedItem.selectedCommunityId
......@@ -396,7 +397,9 @@ export default {
}
if (!alreadyInGroupList) {
this.updatedItem.selectedCommunities.push(this.updatedItem.selectedCommunityId);
this.updatedItem.selectedCommunities.push(
this.updatedItem.selectedCommunityId
);
this.communityErrorMessage = "";
}
},
......
......@@ -202,7 +202,8 @@
<Button :text="'Velg bilde'" @click="$refs.file.click()" />
<div v-for="image in item.images" :key="image" class="m-2">
<img :src="image" class="w-2/5 inline" alt="Bilde av gjenstanden" /> <!-- @click="removeImage(image)" -->
<img :src="image" class="w-2/5 inline" alt="Bilde av gjenstanden" />
<!-- @click="removeImage(image)" -->
</div>
</div>
......@@ -373,10 +374,10 @@ export default {
fileReader.onloadend = async function () {
const res = fileReader.result;
const id = await postNewImageCommunity(res);
const API_URL = process.env.VUE_APP_BASEURL;
that.item.imagesToSend.push(API_URL + "images/" + id);
that.item.images.push(API_URL + "images/" + id)
that.item.images.push(API_URL + "images/" + id);
};
fileReader.readAsArrayBuffer(image);
},
......@@ -413,7 +414,6 @@ export default {
}
}
this.item.images = newImages;
},
},
beforeMount() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment