mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-22 22:39:36 +02:00
chore: Fix null values for adventure date and end date in AdventureModal and EditTransportation
This commit is contained in:
parent
a9f2ff63b7
commit
a7d84c0a60
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue