diff --git a/redisinsight/ui/src/components/virtual-tree/components/Node/Node.tsx b/redisinsight/ui/src/components/virtual-tree/components/Node/Node.tsx index 0ea4e18519..6ec385929b 100644 --- a/redisinsight/ui/src/components/virtual-tree/components/Node/Node.tsx +++ b/redisinsight/ui/src/components/virtual-tree/components/Node/Node.tsx @@ -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' @@ -31,6 +31,12 @@ const Node = ({ updateStatusSelected, } = data + useEffect(() => { + if (isSelected && keys) { + updateStatusSelected?.(fullName, keys) + } + }, [keys, isSelected]) + const handleClick = () => { if (isLeaf && keys) { setItems?.(keys) diff --git a/redisinsight/ui/src/pages/browser/components/bulk-actions/BulkDelete/BulkDeleteContent/BulkDeleteContent.tsx b/redisinsight/ui/src/pages/browser/components/bulk-actions/BulkDelete/BulkDeleteContent/BulkDeleteContent.tsx index 2134078cd8..663359df37 100644 --- a/redisinsight/ui/src/pages/browser/components/bulk-actions/BulkDelete/BulkDeleteContent/BulkDeleteContent.tsx +++ b/redisinsight/ui/src/pages/browser/components/bulk-actions/BulkDelete/BulkDeleteContent/BulkDeleteContent.tsx @@ -40,8 +40,10 @@ const BulkDeleteContent = () => { return (