From 9eacbbaac8af72960aa933fe3f82e7788a554a1d Mon Sep 17 00:00:00 2001 From: vmanawat <109625428+vmanawat@users.noreply.github.com> Date: Wed, 20 Mar 2024 10:29:15 -0700 Subject: [PATCH] Update print licence checkbox --- .../src/features/licences/LicenceDetailsViewEdit.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/client/src/features/licences/LicenceDetailsViewEdit.jsx b/app/client/src/features/licences/LicenceDetailsViewEdit.jsx index 08668eb..101a209 100644 --- a/app/client/src/features/licences/LicenceDetailsViewEdit.jsx +++ b/app/client/src/features/licences/LicenceDetailsViewEdit.jsx @@ -180,7 +180,12 @@ export default function LicenceDetailsViewEdit({ licence }) { const onRenewCallback = (data) => { const dates = data; dispatch(renewLicence({ data: dates, id: licence.data.id })); - setIsPrintLicenceChecked(true); + + let actionRequired = getValues("actionRequired"); + let printLicence = true + let renewalNotice = getValues("renewalNotice"); + setIsPrintLicenceChecked(printLicence); + dispatch(updateLicenceCheckboxes({data: { actionRequired, printLicence, renewalNotice }, id: licence.data.id })); }; const onRenew = () => {