Merge branch 'main' of github.com:utopia-os/utopia-ui

This commit is contained in:
Anton Tranelis 2025-06-10 14:01:05 +02:00
commit a4ddce53c2

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