Closed daniellee closed 8 years ago
The range object is a Momentjs date object and is mutable so the .add(1, 'days') call changes the date range for the other annotations. This change clones the date object before adding a day. Definitely a subtle bug!
http://momentjs.com/docs/#/parsing/moment-clone/
Thanks much for the fix!
The range object is a Momentjs date object and is mutable so the .add(1, 'days') call changes the date range for the other annotations. This change clones the date object before adding a day. Definitely a subtle bug!
http://momentjs.com/docs/#/parsing/moment-clone/