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