Skip to content

Commit

Permalink
#RI-6532 - Empty value is displayed as array
Browse files Browse the repository at this point in the history
  • Loading branch information
egor-zalenski committed Jan 8, 2025
1 parent 19b24be commit b15e9fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/webviews/src/utils/formatters/valueFormatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ const formattingBuffer = (
}
case KeyValueFormat.Protobuf: {
try {
if (reply.data?.length === 0) {
throw new Error()
}
const decoded = getData(Buffer.from(reply.data))
const value = JSONBigInt.stringify(decoded)
return JSONViewer({ value, ...props })
Expand Down

0 comments on commit b15e9fe

Please sign in to comment.