diff options
author | monikahedman <monika_hedman@brown.edu> | 2019-07-14 18:15:39 -0400 |
---|---|---|
committer | monikahedman <monika_hedman@brown.edu> | 2019-07-14 18:15:39 -0400 |
commit | 29840e571c2f17d0bb346186dd91f1d895684a95 (patch) | |
tree | 5f376e6e728e80a901b207911ca80b8b7cb07222 | |
parent | 44b91eacaab13eebaaa707f42670f01a736c5bba (diff) |
fixed no search results
-rw-r--r-- | src/client/views/search/SearchBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx index f5748d494..bfad9a845 100644 --- a/src/client/views/search/SearchBox.tsx +++ b/src/client/views/search/SearchBox.tsx @@ -230,7 +230,7 @@ export class SearchBox extends React.Component { this._startIndex = startIndex === -1 ? 0 : startIndex; this._endIndex = endIndex === -1 ? 12 : endIndex; - if (this._numTotalResults === 0 && this._openNoResults) { + if ((this._numTotalResults === 0 || this._results.length === 0) && this._openNoResults) { this._visibleElements = [<div className="no-result">No Search Results</div>]; return; } |