Skip to content

Commit d2c8007

Browse files
author
KIvanow
committed
RI-6349 - vaue is not displayed while editing
purposfully not using json-bigin library as it fails with scientific notations and probably other edge cases seemed like a simple enough use case to implement directly
1 parent 969a52d commit d2c8007

File tree

1 file changed

+5
-1
lines changed
  • redisinsight/ui/src/pages/browser/modules/key-details/components/rejson-details/rejson-object

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ const RejsonObject = (props: JSONObjectProps) => {
7979
const onClickEditEntireObject = () => {
8080
handleFetchVisualisationResults(path, true).then((data: REJSONResponse) => {
8181
setEditEntireObject(true)
82-
setValueOfEntireObject(typeof data.data === 'object' ? JSON.stringify(data.data, undefined, 4) : data.data)
82+
setValueOfEntireObject(typeof data.data === 'object' ? JSON.stringify(data.data, (_key, value) => (
83+
typeof value === 'bigint'
84+
? value.toString()
85+
: value
86+
), 4) : data.data)
8387
})
8488
}
8589

0 commit comments

Comments
 (0)