diff --git a/src/actions.js b/src/actions.js index f6f5ec9..6348144 100644 --- a/src/actions.js +++ b/src/actions.js @@ -176,7 +176,7 @@ export function updateTask(task, clientMutationLabel) { ); } -export function resolveTask(task, clientMutationLabel, user, approveOrFail, additionalData) { +export function resolveTask(task, clientMutationLabel, user, approveOrFail, additionalData = null) { return PERFORM_MUTATION( MUTATION_SERVICE.TASK.RESOLVE, formatTaskResolveGQL(task, user, approveOrFail, additionalData), diff --git a/src/pages/TaskDetailsPage.js b/src/pages/TaskDetailsPage.js index e1f9f7d..ee155e2 100644 --- a/src/pages/TaskDetailsPage.js +++ b/src/pages/TaskDetailsPage.js @@ -36,7 +36,7 @@ function TaskDetailsPage({ const history = useHistory(); const { formatMessage } = useTranslations('tasksManagement', modulesManager); const [editedTask, setEditedTask] = useState({}); - const [additionalData, setAdditionalData] = useState({}); + const [additionalData, setAdditionalData] = useState(null); const submittingMutationRef = useRef(); const back = () => history.goBack();