diff --git a/src/pages/Zone/Card/ZoneEventExclusionForm.vue b/src/pages/Zone/Card/ZoneEventExclusionForm.vue index 6635ce385..62cf7cf8d 100644 --- a/src/pages/Zone/Card/ZoneEventExclusionForm.vue +++ b/src/pages/Zone/Card/ZoneEventExclusionForm.vue @@ -67,7 +67,7 @@ const exclusionGeoCreate = async () => { }; const exclusionCreate = async () => { - if (isNew.value) + if (isNew.value || props.event?.type) await axios.post(`Zones/${route.params.id}/exclusions`, [{ dated: dated }]); else await axios.put(`Zones/${route.params.id}/exclusions/${props.event?.id}`, { @@ -119,11 +119,7 @@ onMounted(() => { >