1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-06 21:55:18 +02:00

fix: Error loading calender when transport has no date

This commit is contained in:
Lars Lehmann 2025-01-23 21:29:49 +01:00
parent 12a6429812
commit 69967b759f
No known key found for this signature in database
GPG key ID: BC832CCD9A8BAE4D

View file

@ -90,7 +90,9 @@
if (transportations) { if (transportations) {
dates = dates.concat( dates = dates.concat(
transportations.map((transportation) => ({ transportations
.filter((i) => i.date)
.map((transportation) => ({
id: transportation.id, id: transportation.id,
start: transportation.date || '', // Ensure it's a string start: transportation.date || '', // Ensure it's a string
end: transportation.end_date || transportation.date || '', // Ensure it's a string end: transportation.end_date || transportation.date || '', // Ensure it's a string