mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-24 15:29:36 +02:00
Enhance unlinked state logic in TransportationCard to account for missing dates
This commit is contained in:
parent
8f7551f4be
commit
46e3e91679
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue