Skip to content

Commit

Permalink
2808 - added optional chaning operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Eleanor Heath committed Sep 7, 2021
1 parent bf8eb66 commit 0dc8871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/BoxMenuView.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class BoxMenuView extends MenuView {

processHeader() {
const config = this.model.get('_boxMenu');
const header = config && config._menuHeader;
const header = config?._menuHeader;

if (!header) return;

Expand Down

0 comments on commit 0dc8871

Please sign in to comment.