Enhance unlinked state logic in TransportationCard to account for missing dates
This commit is contained in:
@@ -35,7 +35,11 @@
|
|||||||
collection.start_date > transportation.end_date &&
|
collection.start_date > transportation.end_date &&
|
||||||
collection.end_date > transportation.end_date;
|
collection.end_date > transportation.end_date;
|
||||||
|
|
||||||
unlinked = !!(startOutsideRange || endOutsideRange);
|
unlinked = !!(
|
||||||
|
startOutsideRange ||
|
||||||
|
endOutsideRange ||
|
||||||
|
(!transportation.date && !transportation.end_date)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user