Skip to content

Commit f87c669

Browse files
committed
#RI-5371 - fix key tree loading
1 parent 5bc74d2 commit f87c669

File tree

1 file changed

+3
-3
lines changed
  • redisinsight/ui/src/pages/browser/components/key-tree

1 file changed

+3
-3
lines changed

redisinsight/ui/src/pages/browser/components/key-tree/KeyTree.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ const KeyTree = forwardRef((props: Props, ref) => {
160160
})
161161
}
162162

163-
if (keysState.keys.length === 0) {
163+
if (keysState.lastRefreshTime && keysState.keys.length === 0) {
164164
const NoItemsMessage = () => {
165-
if (loading || !firstDataLoaded) {
165+
if (loading || !firstDataLoaded || !keysState.lastRefreshTime) {
166166
return <span>loading...</span>
167167
}
168168

@@ -195,7 +195,7 @@ const KeyTree = forwardRef((props: Props, ref) => {
195195
deleting={deleting}
196196
statusSelected={selectedKeyName}
197197
statusOpen={statusOpen}
198-
loading={loading || constructingTree}
198+
loading={loading || constructingTree || !keysState.lastRefreshTime}
199199
commonFilterType={commonFilterType}
200200
setConstructingTree={setConstructingTree}
201201
webworkerFn={constructKeysToTree}

0 commit comments

Comments
 (0)