diff --git a/mock/app.js b/mock/app.js index f705763..870cbf5 100644 --- a/mock/app.js +++ b/mock/app.js @@ -2088,6 +2088,11 @@ function enterTrip(id) { days = deep(saved.days); stays = deep(saved.stays); version = saved.version; history = saved.history; hIdx = saved.hIdx; if (saved.bookings) M.trip.bookings = deep(saved.bookings); if (saved.title != null) M.trip.title = saved.title; + // self-heal plans saved by the old re-anchoring, which re-dated the days + // but not the stays (hotel nights then no longer "covered" any day); + // idempotent — a consistent plan is a no-op + redateStaysAndPlaces(); + persistTrip(); } tripDocs = {}; // rehydrated from the server store below // reset per-trip UI state