Implement location data fix

This commit is contained in:
gpt-engineer-app[bot]
2025-11-06 02:02:57 +00:00
parent 20f3844a58
commit 36878c05af

View File

@@ -615,8 +615,15 @@ export async function submitParkCreation(
} }
if (dependencies.length > 0) { 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( return submitCompositeCreation(
{ type: 'park', data: data._compositeSubmission.park }, { type: 'park', data: parkData },
dependencies, dependencies,
userId userId
); );