fix: Error loading calender when transport has no date
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user