Compare commits
No commits in common. "a23c4cdfd99297101e6b602924befe508a73f566" and "5feef03187185d21f15f83f8e308f9f98c684878" have entirely different histories.
a23c4cdfd9
...
5feef03187
@ -175,9 +175,10 @@ export function useSurvey(id?: number): {
|
||||
})
|
||||
return resp.data.id ?? 0
|
||||
},
|
||||
onSuccess: () => {
|
||||
onSuccess: (data) => {
|
||||
queryClient.invalidateQueries({ queryKey: ['survey', 'list'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['survey', id] })
|
||||
return data
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user