diff --git a/src/client/types/migration.ts b/src/client/types/migration.ts index c6dfd9f..2ccf0c0 100644 --- a/src/client/types/migration.ts +++ b/src/client/types/migration.ts @@ -6,7 +6,8 @@ function migrate_A_to_0(e: journey): journey { e.main.forEach((v) => { v.date_range = v.date_range || (v as any).dateRange; v.day_title = v.day_title || (v as any).step_title; - v.travel; + v.places.activities = v.places.activities || (v as any).places.places; + v.travel = v.travel || []; }) console.log(e) return e;