From 29840e571c2f17d0bb346186dd91f1d895684a95 Mon Sep 17 00:00:00 2001 From: monikahedman Date: Sun, 14 Jul 2019 18:15:39 -0400 Subject: fixed no search results --- src/client/views/search/SearchBox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 = [
No Search Results
]; return; } -- cgit v1.2.3-70-g09d2