Skip to content

Commit

Permalink
Check if parentsById is undefined before looping it
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrvivian committed Feb 15, 2023
1 parent 590f23d commit a43cd0b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

2 changes: 1 addition & 1 deletion plugins/dashboard/frontend/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html> <html> <head> <meta charset="utf-8"> <title>GoShimmer Dashboard</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"/> </head> <body> <div id="root"></div> <script type="text/javascript" src="/app/a1e7322de4eb5154c0c3.js"></script><script type="text/javascript" src="/app/vendor.556e0837fc9a6123499e.js"></script><script type="text/javascript" src="/app/app.e4a22c17997e7948eb65.js"></script></body> </html>
<!doctype html> <html> <head> <meta charset="utf-8"> <title>GoShimmer Dashboard</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"/> </head> <body> <div id="root"></div> <script type="text/javascript" src="/app/a1e7322de4eb5154c0c3.js"></script><script type="text/javascript" src="/app/vendor.556e0837fc9a6123499e.js"></script><script type="text/javascript" src="/app/app.b221a67890846d0932ac.js"></script></body> </html>
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export class Visualizer extends React.Component<Props, any> {
: "-"}
<br/>
{
selected ? Object.keys(selected.parentIDsByType).map((parentType) =>
selected ? selected.parentIDsByType && Object.keys(selected.parentIDsByType).map((parentType) =>
<span> {parentType}:{' '}
{selected.parentIDsByType[parentType].map((parent) => {
return (
Expand Down

0 comments on commit a43cd0b

Please sign in to comment.