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", "name": "utopia-ui",
"version": "3.0.96", "version": "3.0.97",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "utopia-ui", "name": "utopia-ui",
"version": "3.0.96", "version": "3.0.97",
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"dependencies": { "dependencies": {
"@heroicons/react": "^2.0.17", "@heroicons/react": "^2.0.17",

View File

@ -1,6 +1,6 @@
{ {
"name": "utopia-ui", "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", "description": "Reuseable React Components to build mapping apps for real life communities and networks",
"repository": "https://github.com/utopia-os/utopia-ui", "repository": "https://github.com/utopia-os/utopia-ui",
"homepage": "https://utopia-os.org/", "homepage": "https://utopia-os.org/",

View File

@ -191,7 +191,7 @@ export const onUpdateItem = async (
telephone: state.telephone, telephone: state.telephone,
...(state.end && { end: state.end }), ...(state.end && { end: state.end }),
...(state.start && { start: state.start }), ...(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, next_appointment: state.next_appointment,
...(state.image.length > 10 && { image: state.image }), ...(state.image.length > 10 && { image: state.image }),
...(state.offers.length > 0 && { offers: offerUpdates }), ...(state.offers.length > 0 && { offers: offerUpdates }),
@ -246,7 +246,7 @@ export const onUpdateItem = async (
}, },
}) })
.catch(setLoading(false)) .catch(setLoading(false))
.then(() => item && updateItem({ ...item, ...changedItem })) .then(() => item && updateItem({ ...item, ...changedItem, markerIcon: state.marker_icon }))
.then(() => { .then(() => {
setLoading(false) setLoading(false)
navigate(`/item/${item.id}${params && '?' + params}`) navigate(`/item/${item.id}${params && '?' + params}`)