From ca1d88901740c13214f7785626b4bafa011ace35 Mon Sep 17 00:00:00 2001 From: Lance Date: Wed, 30 Oct 2019 19:53:42 +0800 Subject: [PATCH] Update gantt_chart_resource.js Fix : uncaught typeerror: 'set' on proxy: trap returned falsish for property 'class'. On Winter 20 SFDC release --- .../default/lwc/gantt_chart_resource/gantt_chart_resource.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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..804e8e8 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,10 +237,7 @@ export default class GanttChartResource extends LightningElement { }; self.resource.allocationsByProject[projectId].forEach(allocation => { - allocation.class = self.calcClass(allocation); - allocation.style = self.calcStyle(allocation); - allocation.labelStyle = self.calcLabelStyle(allocation); - + allocation = {class: self.calcClass(allocation), style: self.calcStyle(allocation), labelStyle: self.calcLabelStyle(allocation)}; project.allocations.push(allocation); });