fix(source): fix marker icon update issue (#235)

* 3.0.97

* fix marker icon issue on update group
This commit is contained in:
Anton Tranelis 2025-06-10 13:43:35 +02:00 committed by GitHub
parent 2c50d66edc
commit afdf589b1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View File

@ -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",

View File

@ -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/",

View File

@ -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}`)