Skip to content

Commit d3f6909

Browse files
committed
Fix issue #4362
1 parent 90a9340 commit d3f6909

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/projects/detail/components/timeline/CreateMilestoneForm/CreateMilestoneForm.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ class CreateMilestoneForm extends React.Component {
3434
cancelEdit() {
3535
const { previousMilestone } = this.props
3636
const startDate = previousMilestone ? moment.utc(previousMilestone.completionDate || previousMilestone.endDate) : moment.utc()
37-
this.state = {
37+
this.setState({
3838
isEditing: false,
3939
type: '',
4040
name: '',
4141
startDate: startDate.format('YYYY-MM-DD'),
4242
endDate: startDate.add(3, 'days').format('YYYY-MM-DD')
43-
}
43+
})
4444
}
4545

4646
onAddClick() {

0 commit comments

Comments
 (0)