File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/extensions/advancedcharts/chart/gantt Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
- import { toNumber } from '../../../../chart/ChartUtils' ;
2
1
import { buildGraphVisualizationObjectFromRecords } from '../../../../chart/graph/util/RecordUtils' ;
3
2
import date_utils from './frappe/lib/date_utils' ;
4
3
@@ -98,9 +97,9 @@ export function createTasksList(
98
97
return undefined ;
99
98
}
100
99
}
101
- let res = {
102
- start : new Date ( toNumber ( neoStartDate . year ) , toNumber ( neoStartDate . month ) , toNumber ( neoStartDate . day ) ) ,
103
- end : new Date ( toNumber ( neoEndDate . year ) , toNumber ( neoEndDate . month ) , toNumber ( neoEndDate . day ) ) ,
100
+ return {
101
+ start : new Date ( neoStartDate . year , neoStartDate . month , neoStartDate . day ) ,
102
+ end : new Date ( neoEndDate . year , neoEndDate . month , neoEndDate . day ) ,
104
103
name : name || '(undefined)' ,
105
104
labels : n . labels ,
106
105
dependencies : dependencies [ n . id ] ,
@@ -113,7 +112,6 @@ export function createTasksList(
113
112
isDisabled : true ,
114
113
styles : { progressColor : '#ffbb54' , progressSelectedColor : '#ff9e0d' } ,
115
114
} ;
116
- return res ;
117
115
} )
118
116
. filter ( ( i ) => i !== undefined ) ;
119
117
}
You can’t perform that action at this time.
0 commit comments