mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-04-05 09:05:27 +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,
|
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}`)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user