diff --git a/js/src/forum/components/Search.js b/js/src/forum/components/Search.js index cc1083c032..5f1b82ce27 100644 --- a/js/src/forum/components/Search.js +++ b/js/src/forum/components/Search.js @@ -114,6 +114,9 @@ export default class Search extends Component { // Highlight the item that is currently selected. this.setIndex(this.getCurrentNumericIndex()); + // If there are no sources, the search view is not shown. + if (!this.sources.length) return; + // Since extensions might add elements above the search box on mobile, // we need to calculate and set the max height dynamically. const resultsElementMargin = 14;