Skip to content

Commit

Permalink
fix: check for null in presenters
Browse files Browse the repository at this point in the history
  • Loading branch information
wmui51 committed Jan 12, 2024
1 parent abb15b3 commit e5570b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/menu/src/presenters/MenuGroupPresenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const MenuGroupPresenter = (props) => {
mounted.current = true;
} else {
// update options if they change
const previousOptions = props.getOptionsInfo();
const previousOptions = props.getOptionsInfo() || {};
const menusInfo = {};
const mergedOptions = [];
const currentIds = [];
Expand Down

0 comments on commit e5570b9

Please sign in to comment.