fix(highlight) fix allowing disabled button to execute handler (#11128)
This commit is contained in:
parent
506f72d43e
commit
c5fbe14de2
|
@ -43,9 +43,11 @@ export default class AbstractHighlightButton<P: Props> extends Component<P> {
|
|||
* @returns {void}
|
||||
*/
|
||||
_onClick() {
|
||||
const { dispatch } = this.props;
|
||||
const { _disabled, dispatch } = this.props;
|
||||
|
||||
dispatch(highlightMeetingMoment());
|
||||
if (!_disabled) {
|
||||
dispatch(highlightMeetingMoment());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue