Skip to content

Commit 7e45f36

Browse files
committed
fix ui issue
1 parent 3fbc9d7 commit 7e45f36

File tree

1 file changed

+2
-2
lines changed
  • redisinsight/ui/src/pages/browser/modules/key-details/components/rejson-details/rejson-dynamic-types

1 file changed

+2
-2
lines changed

redisinsight/ui/src/pages/browser/modules/key-details/components/rejson-details/rejson-dynamic-types/RejsonDynamicTypes.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const RejsonDynamicTypes = (props: DynamicTypesProps) => {
6969

7070
const renderRejsonDataBeDownloaded = (item: any, i: number) => {
7171
if (isScalar(item))
72-
return renderScalar({ key: i || null, value: item, parentPath })
72+
return renderScalar({ key: i || '', value: item, parentPath })
7373

7474
const data = { ...item, parentPath }
7575
if (['array', 'object'].includes(item.type))
@@ -97,7 +97,7 @@ const RejsonDynamicTypes = (props: DynamicTypesProps) => {
9797

9898
const renderResult = (data: any) => {
9999
if (isScalar(data)) {
100-
return renderScalar({ key: null, value: data, parentPath })
100+
return renderScalar({ key: '', value: data, parentPath })
101101
}
102102

103103
if (!isDownloaded) {

0 commit comments

Comments
 (0)