Details
-
Bug
-
Status: Closed (View Workflow)
-
TBD
-
Resolution: Done
-
ERM Sprint 144, ERM Sprint 145
-
Bienenvolk
-
Morning Glory (R2 2022) Bug Fix
-
Legitimate regression
Description
Overview:
Trying to delete an agreement line using the "Delete" option from the Agreement line view actions menu does not delete agreement line.
Steps to Reproduce:
- Create an agreement and add an agreement line
- View the agreement line
- Click "Actions" and choose "Delete"
- Confirm deletion in dialogue
Expected Results:
Agreement line deleted
Actual Results:
Agreement line not deleted
Additional Information:
From Ethan:
This...
const { mutateAsync: deleteAgreementLine } = useMutation( [agreementLinePath, 'ui-agreements', 'AgreementLineViewRoute', 'deleteAgreementLine'], () => ky.put(agreementLinePath, { id: agreementId, items: [ { id: lineId, _delete: true } ] }).then(() => { queryClient.invalidateQueries(AGREEMENT_LINES_ENDPOINT); history.push(`${urls.agreementView(agreementId)}${location.search}`); callout.sendCallout( { message: <FormattedMessage id="ui-agreements.line.delete.callout" /> } ); }).catch(error => { callout.sendCallout({ type: 'error', timeout: 0, message: <FormattedMessage id="ui-agreements.line.deleteFailed.callout" values={{ message: error.message }} /> }); }) );
Needs to be pointing at the agreements endpoint, not the agreements line one, and I need to add json key into that payload for it to send it down.
URL:
Interested parties: