Merge pull request #254 from seanmorley15/development
chore: Fix null values for adventure date and end date in AdventureMo…
This commit is contained in:
@@ -164,7 +164,7 @@
|
||||
</div>
|
||||
<div class="mb-2">
|
||||
<label for="start_date"
|
||||
>{transportationToEdit.date ? 'Start' : ''}Date & Time <Calendar
|
||||
>{transportationToEdit.date ? 'Start ' : ''}Date & Time <Calendar
|
||||
class="inline-block mb-1 w-6 h-6"
|
||||
/></label
|
||||
><br />
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user