Skip to content

Commit bd100b5

Browse files
authored
Merge pull request #4488 from appirio-tech/hotfix/milestone-message-rewording
[HOTFIX][DEV] Fixed unhandled onClick undefined error
2 parents 03f023a + 2edd2cd commit bd100b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/projects/detail/components/SimplePlan/components/MilestoneApprovalButton/MilestoneApprovalButton.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class MilestoneApprovalButton extends React.Component {
3535
onClick={() => {
3636
if(type === 'reject') {
3737
this.setState({open: true})
38-
} else {
38+
} else if(onClick) {
3939
onClick()
4040
}
4141
}}

0 commit comments

Comments
 (0)