Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
Signed-off-by: CTomlyn <[email protected]>
  • Loading branch information
tomlyn committed Feb 12, 2024
1 parent 7e76223 commit 2185c15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions canvas_modules/common-canvas/src/toolbar/toolbar-sub-menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ class ToolbarSubMenu extends React.Component {
componentDidUpdate() {
if (this.state.focusAction !== "subarea") {
const actionObj = this.props.subMenuActions.find((sma) => sma.action === this.state.focusAction);
if (!actionObj.enable) {
if (!actionObj?.enable) {
const actionToSet = this.getClosestEnabledAction(this.state.focusAction);
if (actionToSet !== "") {
if (actionToSet !== null) {
this.setFocusAction(actionToSet);
}
}
Expand Down

0 comments on commit 2185c15

Please sign in to comment.