Unverified Commit ed9e162a authored by AmitUp9's avatar AmitUp9 Committed by GitHub
Browse files

validation that grpc error render only when needed (#1051)

parent 4e22e775
Showing with 3 additions and 2 deletions
+3 -2
......@@ -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);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment