Compare commits
2 Commits
5feef03187
...
a23c4cdfd9
| Author | SHA1 | Date | |
|---|---|---|---|
| a23c4cdfd9 | |||
| f06b7cf0ac |
@ -175,10 +175,9 @@ export function useSurvey(id?: number): {
|
||||
})
|
||||
return resp.data.id ?? 0
|
||||
},
|
||||
onSuccess: (data) => {
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ['survey', 'list'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['survey', id] })
|
||||
return data
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user