From afdf589b1e4919243ba3f4029964b72b3fbc2973 Mon Sep 17 00:00:00 2001 From: Anton Tranelis <31516529+antontranelis@users.noreply.github.com> Date: Tue, 10 Jun 2025 13:43:35 +0200 Subject: [PATCH] fix(source): fix marker icon update issue (#235) * 3.0.97 * fix marker icon issue on update group --- package-lock.json | 4 ++-- package.json | 2 +- src/Components/Profile/itemFunctions.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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}`)