From 2a96c5deaa1c35979df3ffbc4287fea840f175a0 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 2 Dec 2020 14:38:23 -0800 Subject: [PATCH] Resolved object cloning issue for allocations on job close IO-431 --- .gitignore | 1 + client/src/components/bill-form/bill-form.component.jsx | 2 +- .../jobs-close-auto-allocate.component.jsx | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 568b040ea..22ae8da8a 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,7 @@ client/yarn-error.log* admin/npm-debug.log* admin/yarn-debug.log* admin/yarn-error.log* +client/.eslintcache #Firebase Ignore # Logs diff --git a/client/src/components/bill-form/bill-form.component.jsx b/client/src/components/bill-form/bill-form.component.jsx index 96818ab04..1d76181af 100644 --- a/client/src/components/bill-form/bill-form.component.jsx +++ b/client/src/components/bill-form/bill-form.component.jsx @@ -65,7 +65,7 @@ export function BillFormComponent({ return (
- + { - const ret = jl; + const ret = _.cloneDeep(jl); if (jl.part_type) { ret.profitcenter_part = defaults.profits[jl.part_type.toUpperCase()]; } else {