From a93ba93d9121791b4de67a070f4b189b22a898ce Mon Sep 17 00:00:00 2001 From: Jason Clark Date: Fri, 6 Dec 2019 15:21:07 -0600 Subject: [PATCH] fix "'set' on proxy: trap returned falsish" error --- .../default/lwc/gantt_chart_resource/gantt_chart_resource.js | 1 + 1 file changed, 1 insertion(+) diff --git a/force-app/main/default/lwc/gantt_chart_resource/gantt_chart_resource.js b/force-app/main/default/lwc/gantt_chart_resource/gantt_chart_resource.js index 184c8a1..4dd3233 100755 --- a/force-app/main/default/lwc/gantt_chart_resource/gantt_chart_resource.js +++ b/force-app/main/default/lwc/gantt_chart_resource/gantt_chart_resource.js @@ -237,6 +237,7 @@ export default class GanttChartResource extends LightningElement { }; self.resource.allocationsByProject[projectId].forEach(allocation => { + allocation = {...allocation}; //clone immutable object allocation.class = self.calcClass(allocation); allocation.style = self.calcStyle(allocation); allocation.labelStyle = self.calcLabelStyle(allocation);