Update src/client/types/migration.ts
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
208bf1805e
commit
6260d396e5
@ -6,7 +6,8 @@ function migrate_A_to_0(e: journey): journey {
|
|||||||
e.main.forEach((v) => {
|
e.main.forEach((v) => {
|
||||||
v.date_range = v.date_range || (v as any).dateRange;
|
v.date_range = v.date_range || (v as any).dateRange;
|
||||||
v.day_title = v.day_title || (v as any).step_title;
|
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)
|
console.log(e)
|
||||||
return e;
|
return e;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user