1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-25 15:59:38 +02:00

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
commit 4e422d527a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -47,6 +47,12 @@
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, {
method: form.method,
body: formData