mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-14 05:40:16 +00:00
validation that grpc error render only when needed (#1051)
This commit is contained in:
@@ -158,9 +158,10 @@ export const EntryBodySection: React.FC<EntryBodySectionProps> = ({
|
||||
return jsonBeautify(protobufDecoded, null, 2, 80);
|
||||
}
|
||||
} catch (error) {
|
||||
if(isDecodeGrpc)
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user