Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Mizu
Commits
ed9e162a
Unverified
Commit
ed9e162a
authored
3 years ago
by
AmitUp9
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
validation that grpc error render only when needed (#1051)
parent
4e22e775
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui-common/src/components/TrafficViewer/EntryDetailed/EntrySections.tsx
+3
-2
.../components/TrafficViewer/EntryDetailed/EntrySections.tsx
with
3 additions
and
2 deletions
+3
-2
ui-common/src/components/TrafficViewer/EntryDetailed/EntrySections.tsx
+
3
-
2
View file @
ed9e162a
...
...
@@ -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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help