From ce559cf23d33fa488d63b6e5600aeffc6ef0b0f5 Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Thu, 20 Apr 2023 11:19:04 +0200 Subject: [PATCH] fix: rollback failed complete [DHIS2-15033] (#312) --- src/shared/completion/use-set-form-completion-mutation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/completion/use-set-form-completion-mutation.js b/src/shared/completion/use-set-form-completion-mutation.js index 9471ddc8c..d991fd498 100644 --- a/src/shared/completion/use-set-form-completion-mutation.js +++ b/src/shared/completion/use-set-form-completion-mutation.js @@ -75,7 +75,7 @@ export function useSetFormCompletionMutation() { return context }, - onError: (event, context) => { + onError: (event, _, context) => { const alertMessage = i18n.t( 'Something went wrong while setting the form\'s completion to "{{completed}}": {{errorMessage}}', {