File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed
redisinsight/ui/src/pages/browser/components/key-list Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -159,15 +159,25 @@ const KeyList = forwardRef((props: Props, ref) => {
159
159
if ( isNotRendered . current ) {
160
160
return ''
161
161
}
162
- if ( searchMode === SearchMode . Redisearch && ! selectedIndex ) {
163
- return NoSelectedIndexText
162
+
163
+ if ( searchMode === SearchMode . Redisearch ) {
164
+ if ( ! selectedIndex ) {
165
+ return NoSelectedIndexText
166
+ }
167
+
168
+ if ( total === 0 ) {
169
+ return NoResultsFoundText
170
+ }
171
+
172
+ if ( isSearched ) {
173
+ return keysState . scanned < total ? NoResultsFoundText : FullScanNoResultsFoundText
174
+ }
164
175
}
176
+
165
177
if ( total === 0 ) {
166
178
return NoKeysToDisplayText ( Pages . workbench ( instanceId ) , onNoKeysLinkClick )
167
179
}
168
- if ( isSearched && searchMode === SearchMode . Redisearch ) {
169
- return keysState . scanned < total ? NoResultsFoundText : FullScanNoResultsFoundText
170
- }
180
+
171
181
if ( isSearched ) {
172
182
return keysState . scanned < total ? ScanNoResultsFoundText : FullScanNoResultsFoundText
173
183
}
You can’t perform that action at this time.
0 commit comments