diff --git a/src/ui/components/search/searchcomponent.js b/src/ui/components/search/searchcomponent.js index c24e06f5a..e3bcef164 100644 --- a/src/ui/components/search/searchcomponent.js +++ b/src/ui/components/search/searchcomponent.js @@ -678,7 +678,7 @@ export default class SearchComponent extends Component { labelText: this.labelText, inputLabelIdName: this.inputLabelIdName, submitIcon: this.submitIcon, - searchBarContainerId: this._container.id || '', + searchBarContainerId: this._container?.id || '', submitText: this.submitText, clearText: this.clearText, showClearButton: this._showClearButton,