Skip to content

Commit

Permalink
get rid of old data
Browse files Browse the repository at this point in the history
  • Loading branch information
choden-dev committed Nov 3, 2024
1 parent cffadfa commit b92c1dc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,12 @@ const AdminEventViewContent = ({
defaultData={eventPreviousData}
handleDeleteEvent={async () => {
await handleDeleteEvent?.(editedEventId)
await fetchEventToEdit?.()
setMode("view-all-events")
}}
handlePostEvent={async (data) => {
await handleEditEvent?.(editedEventId, data.data)
await fetchEventToEdit?.()
setMode("view-all-events")
}}
isEditMode
Expand Down

0 comments on commit b92c1dc

Please sign in to comment.