After website reload when image exists and I am trying to delete an image, I always get an error. But on new image upload and delete everything works fine. Any ideas?
<FormMedia v-model="form.image" />
<template>
<v-card>
<v-card-title v-text="title" />
<v-card-text>
<v-alert v-if="infoMessage" type="info" v-text="infoMessage" />
<handy-uploader
:document-attachment.sync="handyAttachments"
:file-uploader-type="'simple'"
:max-file-size="10240"
:image-compressor="true"
:image-compress-level="0.8"
:max-file-count="1"
:badge-counter="true"
:thumb="true"
:change-file-name="true"
:add-file-description="true"
:cols="12"
/>
</v-card-text>
</v-card>
</template>
<script>
import handyUploader from 'handy-uploader/src/components/handyUploader'
export default {
components: {
handyUploader,
},
props: {
value: {
type: Array,
default: () => [],
},
title: {
type: String,
default: 'Image',
},
infoMessage: {
type: String,
default: '',
},
},
computed: {
handyAttachments: {
get() {
return this.value
},
set(value) {
this.$emit('input', value)
},
},
},
}
</script>