mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-04 11:58:41 +00:00
validation that grpc error render only when needed (#1051)
This commit is contained in:
parent
4e22e77597
commit
ed9e162af0
@ -158,9 +158,10 @@ export const EntryBodySection: React.FC<EntryBodySectionProps> = ({
|
||||
return jsonBeautify(protobufDecoded, null, 2, 80);
|
||||
}
|
||||
} catch (error) {
|
||||
if (String(error).includes("More than one message in")){
|
||||
if(isDecodeGrpc)
|
||||
setIsDecodeGrpc(false);
|
||||
if (!String(error).includes("More than one message in")){
|
||||
} else {
|
||||
console.error(error);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user