Skip to content

Commit

Permalink
Application Graph displays exception stack trace
Browse files Browse the repository at this point in the history
Signed-off-by: liyanfang <[email protected]>
  • Loading branch information
liyanfang committed Apr 27, 2023
1 parent 7bc6b2f commit 95b182e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/velaux-ui/src/components/TreeGraph/component-node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ 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 +203,15 @@ export const ComponentNode = (props: ComponentNodeProps) => {

<If condition={traits.length > 0}>
<div className={classNames('label-traits')}>
{traits && (
{traits && (
<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 95b182e

Please sign in to comment.