File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -171,14 +171,11 @@ module.exports = [
171
171
} ) ;
172
172
} )
173
173
. then ( ( ) => {
174
- // Update dates of the other milestones only if the completionDate nor the duration changed
175
- if ( ( ( ! original . completionDate && ! updated . completionDate ) ||
176
- ( original . completionDate && updated . completionDate &&
177
- original . completionDate . getTime ( ) === updated . completionDate . getTime ( ) ) ) &&
178
- original . duration === updated . duration ) {
179
- return Promise . resolve ( ) ;
174
+ // Update dates of the other milestones only if the completionDate or the duration changed
175
+ if ( ! _ . isEqual ( original . completionDate , updated . completionDate ) || original . duration !== updated . duration ) {
176
+ return updateComingMilestones ( updated ) ;
180
177
}
181
- return updateComingMilestones ( updated ) ;
178
+ return Promise . resolve ( ) ;
182
179
} ) ,
183
180
)
184
181
. then ( ( ) => {
You can’t perform that action at this time.
0 commit comments