From 0dc8871555edc9b11eca9fcbf36f75f71e484b67 Mon Sep 17 00:00:00 2001 From: Eleanor Heath Date: Tue, 7 Sep 2021 10:31:46 +0100 Subject: [PATCH] 2808 - added optional chaning operator --- js/BoxMenuView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/BoxMenuView.js b/js/BoxMenuView.js index e74387a..e9dc691 100644 --- a/js/BoxMenuView.js +++ b/js/BoxMenuView.js @@ -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;