diff --git a/package-lock.json b/package-lock.json index 4a3d4369..50dc1e1e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "utopia-ui", - "version": "3.0.96", + "version": "3.0.97", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "utopia-ui", - "version": "3.0.96", + "version": "3.0.97", "license": "GPL-3.0-only", "dependencies": { "@heroicons/react": "^2.0.17", diff --git a/package.json b/package.json index 859b6b1b..e4cd2f84 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "utopia-ui", - "version": "3.0.96", + "version": "3.0.97", "description": "Reuseable React Components to build mapping apps for real life communities and networks", "repository": "https://github.com/utopia-os/utopia-ui", "homepage": "https://utopia-os.org/", diff --git a/src/Components/Profile/itemFunctions.ts b/src/Components/Profile/itemFunctions.ts index ddf6ca32..c20fe63d 100644 --- a/src/Components/Profile/itemFunctions.ts +++ b/src/Components/Profile/itemFunctions.ts @@ -191,7 +191,7 @@ export const onUpdateItem = async ( telephone: state.telephone, ...(state.end && { end: state.end }), ...(state.start && { start: state.start }), - ...(state.marker_icon && { markerIcon: state.marker_icon }), + ...(state.marker_icon && { markerIcon: state.marker_icon.id }), next_appointment: state.next_appointment, ...(state.image.length > 10 && { image: state.image }), ...(state.offers.length > 0 && { offers: offerUpdates }), @@ -246,7 +246,7 @@ export const onUpdateItem = async ( }, }) .catch(setLoading(false)) - .then(() => item && updateItem({ ...item, ...changedItem })) + .then(() => item && updateItem({ ...item, ...changedItem, markerIcon: state.marker_icon })) .then(() => { setLoading(false) navigate(`/item/${item.id}${params && '?' + params}`)