File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ export const projectGanttTransformer = (project: ProjectGantt): ProjectGantt =>
6666 dateCreated : new Date ( project . dateCreated ) ,
6767 startDate : project . startDate ? new Date ( project . startDate ) : undefined ,
6868 endDate : project . endDate ? new Date ( project . endDate ) : undefined ,
69- workPackages : project . workPackages . map ( workPackageTransformer )
69+ workPackages : project . workPackages . map ( workPackageTransformer ) ,
70+ tasks : project . tasks . map ( taskTransformer )
7071 } ;
7172} ;
7273
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ export const applyChangesToWBSElement = (
228228
229229 // Check if it's a Task
230230 if ( ( updatedElement as Task ) . taskId !== undefined ) {
231- const task = JSON . parse ( JSON . stringify ( updatedElement ) ) as Task ;
231+ const task = updatedElement as Task ;
232232 for ( const change of ganttChanges ) {
233233 if ( ( change . element as Task ) . taskId === task . taskId ) {
234234 // Apply changes to the task
You can’t perform that action at this time.
0 commit comments