mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
fix(source): fix marker icon update issue (#235)
* 3.0.97 * fix marker icon issue on update group
This commit is contained in:
parent
2c50d66edc
commit
afdf589b1e
4
package-lock.json
generated
4
package-lock.json
generated
@ -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",
|
||||
|
||||
@ -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/",
|
||||
|
||||
@ -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}`)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user