chore: Fix null values for adventure date and end date in AdventureModal and EditTransportation

This commit is contained in:
Sean Morley
2024-08-19 16:40:47 -04:00
parent dd8999a45f
commit a9f2ff63b7
2 changed files with 9 additions and 4 deletions

View File

@@ -295,6 +295,11 @@
}
}
if (adventure.end_date && !adventure.date) {
adventure.end_date = null;
adventure.date = null;
}
console.log(adventure);
if (adventure.id === '') {
let res = await fetch('/api/adventures', {