Skip to content

Commit 0744a41

Browse files
committed
fix: ProfileExplorer can show object Object for duplicate forms in profile
1 parent 020d4a2 commit 0744a41

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

plugins/plugin-madwizard/components/src/ProfileExplorer.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,11 +541,16 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
541541
// meta.group.title: e.g. Application or Compute or Storage
542542
// meta.title: e.g. Scenario or Cluster/Namespace or Region
543543
// value: e.g. "Getting Started Demo" or yourNamespace or us-east
544+
const thisNode = this.treeNode(title, meta, value)
544545
if (already) {
545546
// there is
546-
already.name = already.name + ", " + value
547+
already.name = (
548+
<span>
549+
{already.name} {thisNode.name}
550+
</span>
551+
)
547552
} else {
548-
children.push(this.editable(title, this.treeNode(title, meta, value)))
553+
children.push(this.editable(title, thisNode))
549554
}
550555
}
551556
}

0 commit comments

Comments
 (0)