Skip to content

Commit

Permalink
Fix: Application Graph displays exception stack trace
Browse files Browse the repository at this point in the history
Signed-off-by: liyanfang <liyanfang@cmss.chinamobile.com>
  • Loading branch information
liyanfang committed Apr 27, 2023
1 parent 95b182e commit 67b0e38
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ export const ComponentNode = (props: ComponentNodeProps) => {
</Balloon>
);
};
console.log("--traits--", traits)
const graphNode = (
<div
className={classNames('graph-node', 'graph-node-resource', {
Expand Down Expand Up @@ -203,15 +202,15 @@ export const ComponentNode = (props: ComponentNodeProps) => {

<If condition={traits.length > 0}>
<div className={classNames('label-traits')}>
{traits && (
{traits && traits.length > 0 && traits[0] && (
<Tag animation={true}>
<span
className={classNames('circle', {
'circle-success': traits[0]?.healthy,
'circle-failure': !traits[0]?.healthy,
'circle-success': traits[0].healthy,
'circle-failure': !traits[0].healthy,
})}
/>
{traits[0]?.type}
{traits[0].type}
</Tag>
)}
<If condition={traits?.length > 1}>
Expand Down

0 comments on commit 67b0e38

Please sign in to comment.