Skip to content

Commit 5691f61

Browse files
committed
RI-6339 - fixed missing add button
1 parent 8fe5b56 commit 5691f61

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

redisinsight/ui/src/pages/browser/modules/key-details/components/rejson-details/RejsonDetailsWrapper.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { KeyDetailsHeader, KeyDetailsHeaderProps } from 'uiSrc/pages/browser/mod
1212
import { stringToBuffer } from 'uiSrc/utils'
1313
import { IJSONData } from 'uiSrc/pages/browser/modules/key-details/components/rejson-details/interfaces'
1414
import RejsonDetails from './rejson-details'
15+
import { parseJsonData } from './utils'
1516

1617
import styles from './styles.module.scss'
1718

@@ -24,6 +25,8 @@ const RejsonDetailsWrapper = (props: Props) => {
2425
const { id: instanceId } = useSelector(connectedInstanceSelector)
2526
const { viewType } = useSelector(keysSelector)
2627

28+
const updatedData = parseJsonData(data)
29+
2730
const [expandedRows, setExpandedRows] = useState<Set<string>>(new Set())
2831

2932
useEffect(() => {
@@ -96,11 +99,11 @@ const RejsonDetailsWrapper = (props: Props) => {
9699
data-testid="progress-key-json"
97100
/>
98101
)}
99-
{!isUndefined(data) && (
102+
{!isUndefined(updatedData) && (
100103
<RejsonDetails
101104
selectedKey={selectedKey || stringToBuffer('')}
102105
dataType={type || ''}
103-
data={data as IJSONData}
106+
data={updatedData as IJSONData}
104107
length={length}
105108
parentPath={path}
106109
expandedRows={expandedRows}

0 commit comments

Comments
 (0)