Merge pull request #254 from seanmorley15/development

chore: Fix null values for adventure date and end date in AdventureMo…
This commit is contained in:
Sean Morley
2024-08-19 16:45:01 -04:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -47,6 +47,12 @@
return; return;
} }
// make sure end date has a start date
if (newCollection.end_date && !newCollection.start_date) {
addToast('error', 'Please provide a start date');
return;
}
const response = await fetch(form.action, { const response = await fetch(form.action, {
method: form.method, method: form.method,
body: formData body: formData