Skip to content

Commit

Permalink
hotfix-resolve-task: change initial state of additional data (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan <j.dolkowski@soldevelo.com>
  • Loading branch information
jdolkowski and Jan authored Jan 29, 2024
1 parent f9fa968 commit a122c5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion src/pages/TaskDetailsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit a122c5e

Please sign in to comment.