Skip to content

Commit aa4986e

Browse files
Merge pull request #919 from RedisInsight/feature/bugfixing
#RI-3292, #RI-3287, #RI-3288
2 parents f83da23 + c2e24e3 commit aa4986e

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

redisinsight/ui/src/components/virtual-tree/components/Node/Node.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import React, { useEffect } from 'react'
22
import { NodePublicState } from 'react-vtree/dist/es/Tree'
33
import cx from 'classnames'
44
import { EuiIcon, EuiToolTip, keys as ElasticKeys } from '@elastic/eui'
@@ -31,6 +31,12 @@ const Node = ({
3131
updateStatusSelected,
3232
} = data
3333

34+
useEffect(() => {
35+
if (isSelected && keys) {
36+
updateStatusSelected?.(fullName, keys)
37+
}
38+
}, [keys, isSelected])
39+
3440
const handleClick = () => {
3541
if (isLeaf && keys) {
3642
setItems?.(keys)

redisinsight/ui/src/pages/browser/components/bulk-actions/BulkDelete/BulkDeleteContent/BulkDeleteContent.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ const BulkDeleteContent = () => {
4040

4141
return (
4242
<div style={style} className={styles.item} data-testid={`row-${index}`}>
43-
<div color="subdued" className={styles.key}>{key}</div>
44-
<div ref={rowRef} className={styles.error}>{error}</div>
43+
<span ref={rowRef}>
44+
<span className={styles.key}>{key}</span>
45+
<span className={styles.error}>{error}</span>
46+
</span>
4547
</div>
4648
)
4749
}

redisinsight/ui/src/pages/browser/components/keys-header/KeysHeader.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ const KeysHeader = (props: Props) => {
189189
}
190190
})
191191
}
192-
dispatch(resetKeys())
193192
dispatch(resetKeysData())
194193
dispatch(changeKeyViewType(type))
195194
dispatch(resetBrowserTree())

0 commit comments

Comments
 (0)