mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
Merge branch 'main' of github.com:utopia-os/utopia-ui
This commit is contained in:
commit
a4ddce53c2
@ -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