Skip to content

Commit

Permalink
fix: fix useBulkImportDetailsQuery onSuccess prop
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Andrade <[email protected]>
  • Loading branch information
ArthurTriis1 committed Jan 25, 2024
1 parent b629c64 commit 1f75c93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions react/hooks/useBulkImportDetailsQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ const useBulkImportDetailsQuery = ({
{
refreshInterval,
revalidateOnFocus: false,
onSuccess: data => {
onSuccess?.(data)
},
onSuccess,
}
)
}
Expand Down
4 changes: 1 addition & 3 deletions react/hooks/useValidateBulkImport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const useValidateBulkImport = ({ onSuccess }: { onSuccess?: () => void }) => {
(_, { arg }: { arg: { importId: string } }) =>
validateBulkImport(arg.importId),
{
onSuccess() {
onSuccess?.()
},
onSuccess,
}
)

Expand Down

0 comments on commit 1f75c93

Please sign in to comment.