Compare commits

..

No commits in common. "a23c4cdfd99297101e6b602924befe508a73f566" and "5feef03187185d21f15f83f8e308f9f98c684878" have entirely different histories.

View File

@ -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
},
})