Skip to content

Commit 65d7aeb

Browse files
committed
#RI-6532 - Empty value is displayed as array
1 parent 0eecbbe commit 65d7aeb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

redisinsight/ui/src/utils/formatters/valueFormatters.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ const formattingBuffer = (
144144
}
145145
case KeyValueFormat.Protobuf: {
146146
try {
147+
if (reply.data?.length === 0) {
148+
throw new Error()
149+
}
150+
147151
const decoded = getData(Buffer.from(reply.data))
148152
const value = JSONBigInt.stringify(decoded)
149153
return JSONViewer({ value, ...props })

0 commit comments

Comments
 (0)