Skip to content

Commit 2edd2cd

Browse files
committed
Fixed unhandled onClick undefined error
1 parent cc82a54 commit 2edd2cd

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)