File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed
ui/src/pages/browser/components/key-list Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " redisinsight" ,
3
3
"productName" : " RedisInsight" ,
4
4
"private" : true ,
5
- "version" : " 2.10 .0" ,
5
+ "version" : " 2.14 .0" ,
6
6
"description" : " RedisInsight" ,
7
7
"main" : " ./main.prod.js" ,
8
8
"author" : {
Original file line number Diff line number Diff line change @@ -144,15 +144,25 @@ const KeyList = forwardRef((props: Props, ref) => {
144
144
if ( isNotRendered . current ) {
145
145
return ''
146
146
}
147
- if ( searchMode === SearchMode . Redisearch && ! selectedIndex ) {
148
- return NoSelectedIndexText
147
+
148
+ if ( searchMode === SearchMode . Redisearch ) {
149
+ if ( ! selectedIndex ) {
150
+ return NoSelectedIndexText
151
+ }
152
+
153
+ if ( total === 0 ) {
154
+ return NoResultsFoundText
155
+ }
156
+
157
+ if ( isSearched ) {
158
+ return keysState . scanned < total ? NoResultsFoundText : FullScanNoResultsFoundText
159
+ }
149
160
}
161
+
150
162
if ( total === 0 ) {
151
163
return NoKeysToDisplayText ( Pages . workbench ( instanceId ) , onNoKeysLinkClick )
152
164
}
153
- if ( isSearched && searchMode === SearchMode . Redisearch ) {
154
- return keysState . scanned < total ? NoResultsFoundText : FullScanNoResultsFoundText
155
- }
165
+
156
166
if ( isSearched ) {
157
167
return keysState . scanned < total ? ScanNoResultsFoundText : FullScanNoResultsFoundText
158
168
}
You can’t perform that action at this time.
0 commit comments