File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
redisinsight/ui/src/utils/formatters Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ const formattingBuffer = (
72
72
case KeyValueFormat . JSON : return bufferToJSON ( reply , props as FormattingProps )
73
73
case KeyValueFormat . Msgpack : {
74
74
try {
75
- const decoded = decode ( reply . data ) ;
75
+ const decoded = decode ( Uint8Array . from ( reply . data ) ) ;
76
76
const value = JSONBigInt . stringify ( decoded )
77
77
return JSONViewer ( { value, ...props } )
78
78
} catch ( e ) {
@@ -139,7 +139,7 @@ const bufferToSerializedFormat = (
139
139
case KeyValueFormat . JSON : return reSerializeJSON ( bufferToUTF8 ( value ) , space )
140
140
case KeyValueFormat . Msgpack : {
141
141
try {
142
- const decoded = decode ( value . data )
142
+ const decoded = decode ( Uint8Array . from ( value . data ) )
143
143
const stringified = JSON . stringify ( decoded )
144
144
return reSerializeJSON ( stringified , space )
145
145
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments