fix media importing remote event

This commit is contained in:
lesion 2022-07-29 18:10:13 +02:00
parent a253174f11
commit 98e55a977f
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -60,7 +60,6 @@ v-container.container.pa-0.pa-md-3
template(v-slot:selection="{ item, on, attrs, selected, parent}")
v-chip(v-bind="attrs" close :close-icon='mdiCloseCircle' @click:close='parent.selectItem(item)'
:input-value="selected" label small) {{item}}
</v-chip>
v-card-actions
v-spacer
@ -202,7 +201,9 @@ export default {
if (this.event.media.length) {
formData.append('image', this.event.media[0].image)
// formData.append('image_url', this.event.media[0].url)
if (this.event.media[0].url) {
formData.append('image_url', this.event.media[0].url)
}
formData.append('image_name', this.event.media[0].name)
formData.append('image_focalpoint', this.event.media[0].focalpoint)
}