Compare commits

...

2 Commits

Author SHA1 Message Date
a23c4cdfd9 Merge pull request 'fix: fix build error' (#62) from feature/survey into dev
Reviewed-on: #62
2025-06-05 13:49:48 +09:00
f06b7cf0ac fix: fix build error 2025-06-05 13:48:20 +09:00

View File

@ -175,10 +175,9 @@ export function useSurvey(id?: number): {
}) })
return resp.data.id ?? 0 return resp.data.id ?? 0
}, },
onSuccess: (data) => { onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ['survey', 'list'] }) queryClient.invalidateQueries({ queryKey: ['survey', 'list'] })
queryClient.invalidateQueries({ queryKey: ['survey', id] }) queryClient.invalidateQueries({ queryKey: ['survey', id] })
return data
}, },
}) })