From b2fa4f220d43bd726ea445b5382a912020cb4721 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Wed, 28 Jul 2021 12:13:17 -0700 Subject: [PATCH] IO-1277 Protect production note on checklist. --- .../job-checklist-form/job-checklist-form.component.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx b/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx index 44c069920..2c3af76bd 100644 --- a/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx +++ b/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx @@ -59,6 +59,11 @@ export function JobChecklistForm({ production_vars: { ...job.production_vars, ...values.production_vars, + note: + values.production_vars.note && + values.production_vars.note !== "" + ? values.production_vars.note + : job.production_vars.note, }, }), ...(type === "intake" && {