Skip to content

Commit 01c7d8c

Browse files
committed
Implement changes after review
1 parent 6382b53 commit 01c7d8c

File tree

6 files changed

+276
-163
lines changed

6 files changed

+276
-163
lines changed

src/_shared/hooks/useRunMutation/useRunMutation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const useRunMutation = () => {
1414
options: any,
1515
message?: string,
1616
successCallback?: (data?: any) => void,
17-
errorCallback?: () => void,
17+
errorCallback?: (error?: Error) => void,
1818
refetch?: any,
1919
): void => {
2020
mutateFunction(options)
@@ -39,7 +39,7 @@ export const useRunMutation = () => {
3939

4040
// execute any additional actions, i.e. hiding the edit form
4141
if (errorCallback) {
42-
errorCallback();
42+
errorCallback(error);
4343
}
4444
});
4545
};

0 commit comments

Comments
 (0)