mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 08:11:13 -05:00
Implement location data fix
This commit is contained in:
@@ -615,8 +615,15 @@ export async function submitParkCreation(
|
||||
}
|
||||
|
||||
if (dependencies.length > 0) {
|
||||
// Copy location data into composite park data
|
||||
const parkData = {
|
||||
...data._compositeSubmission.park,
|
||||
location: data.location,
|
||||
location_id: data.location_id
|
||||
};
|
||||
|
||||
return submitCompositeCreation(
|
||||
{ type: 'park', data: data._compositeSubmission.park },
|
||||
{ type: 'park', data: parkData },
|
||||
dependencies,
|
||||
userId
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user