We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04626de commit c2e24e3Copy full SHA for c2e24e3
redisinsight/ui/src/components/virtual-tree/components/Node/Node.tsx
@@ -1,4 +1,4 @@
1
-import React from 'react'
+import React, { useEffect } from 'react'
2
import { NodePublicState } from 'react-vtree/dist/es/Tree'
3
import cx from 'classnames'
4
import { EuiIcon, EuiToolTip, keys as ElasticKeys } from '@elastic/eui'
@@ -31,6 +31,12 @@ const Node = ({
31
updateStatusSelected,
32
} = data
33
34
+ useEffect(() => {
35
+ if (isSelected && keys) {
36
+ updateStatusSelected?.(fullName, keys)
37
+ }
38
+ }, [keys, isSelected])
39
+
40
const handleClick = () => {
41
if (isLeaf && keys) {
42
setItems?.(keys)
0 commit comments