From 98e55a977f990b58b4b02fc2da3301b95d2a4e0e Mon Sep 17 00:00:00 2001 From: lesion Date: Fri, 29 Jul 2022 18:10:13 +0200 Subject: [PATCH] fix media importing remote event --- pages/add/_edit.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/add/_edit.vue b/pages/add/_edit.vue index dab79b62..79740bea 100644 --- a/pages/add/_edit.vue +++ b/pages/add/_edit.vue @@ -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-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) }