Skip to content

Commit bad4320

Browse files
committed
Merge branch 'main' into build/snap
2 parents 8ec556d + 2e41e8a commit bad4320

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

redisinsight/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "redisinsight",
33
"productName": "RedisInsight",
44
"private": true,
5-
"version": "2.10.0",
5+
"version": "2.14.0",
66
"description": "RedisInsight",
77
"main": "./main.prod.js",
88
"author": {

redisinsight/ui/src/pages/browser/components/key-list/KeyList.tsx

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,25 @@ const KeyList = forwardRef((props: Props, ref) => {
144144
if (isNotRendered.current) {
145145
return ''
146146
}
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+
}
149160
}
161+
150162
if (total === 0) {
151163
return NoKeysToDisplayText(Pages.workbench(instanceId), onNoKeysLinkClick)
152164
}
153-
if (isSearched && searchMode === SearchMode.Redisearch) {
154-
return keysState.scanned < total ? NoResultsFoundText : FullScanNoResultsFoundText
155-
}
165+
156166
if (isSearched) {
157167
return keysState.scanned < total ? ScanNoResultsFoundText : FullScanNoResultsFoundText
158168
}

0 commit comments

Comments
 (0)