diff --git a/apps/common/main/lib/view/SearchBar.js b/apps/common/main/lib/view/SearchBar.js index 09f8e6b069..f40041b716 100644 --- a/apps/common/main/lib/view/SearchBar.js +++ b/apps/common/main/lib/view/SearchBar.js @@ -169,7 +169,7 @@ define([ this.updateResultsNumber(resultNumber, allResults); }, this)); - this.btnOpenPanelRedact.setVisible(this.mode === 'edit') + this.btnOpenPanelRedact && this.btnOpenPanelRedact.setVisible(this.mode === 'edit') return this; },