diff --git a/webapp/components/suggestion/suggestion_list.jsx b/webapp/components/suggestion/suggestion_list.jsx index ce950e4f4d..71f767104c 100644 --- a/webapp/components/suggestion/suggestion_list.jsx +++ b/webapp/components/suggestion/suggestion_list.jsx @@ -62,6 +62,10 @@ export default class SuggestionList extends React.Component { scrollToItem(term) { const content = this.getContent(); + if (!content) { + return; + } + const visibleContentHeight = content[0].clientHeight; const actualContentHeight = content[0].scrollHeight;