Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import React, { useEffect } from 'react'
import { NodePublicState } from 'react-vtree/dist/es/Tree'
import cx from 'classnames'
import { EuiIcon, EuiToolTip, keys as ElasticKeys } from '@elastic/eui'
Expand Down Expand Up @@ -31,6 +31,12 @@ const Node = ({
updateStatusSelected,
} = data

useEffect(() => {
if (isSelected && keys) {
updateStatusSelected?.(fullName, keys)
}
}, [keys, isSelected])

const handleClick = () => {
if (isLeaf && keys) {
setItems?.(keys)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ const BulkDeleteContent = () => {

return (
<div style={style} className={styles.item} data-testid={`row-${index}`}>
<div color="subdued" className={styles.key}>{key}</div>
<div ref={rowRef} className={styles.error}>{error}</div>
<span ref={rowRef}>
<span className={styles.key}>{key}</span>
<span className={styles.error}>{error}</span>
</span>
</div>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ const KeysHeader = (props: Props) => {
}
})
}
dispatch(resetKeys())
dispatch(resetKeysData())
dispatch(changeKeyViewType(type))
dispatch(resetBrowserTree())
Expand Down