diff --git a/src/pages/admin/admin.js b/src/pages/admin/admin.js index 9afb434b15db63dc4702fde1c138b1eaed7e9afc..3f0240d3a64861487ef5fd8eee3f7d3120f89179 100644 --- a/src/pages/admin/admin.js +++ b/src/pages/admin/admin.js @@ -102,7 +102,7 @@ const AdminPageView = () => { // Add a new location const addLocation = async (location) => { - const { Title, Description, city, street_address, + const { Title, Description, city, street_address, postcode, lat, lon, total_spaces} = location; console.log(JSON.stringify({ @@ -110,6 +110,7 @@ const AdminPageView = () => { Description: Description, city: city, street_address: street_address, + postcode: postcode, lat: lat, lon: lon, total_spaces: total_spaces,