Skip to content

Commit

Permalink
Merge pull request meshery#8484 from Yashsharma1911/yashsharma1911/fi…
Browse files Browse the repository at this point in the history
…xServiceMeshNameProperlyNotRendering
  • Loading branch information
Chadha93 authored Aug 16, 2023
2 parents 65e7130 + d613131 commit 120921e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/components/DashboardComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ class DashboardComponent extends React.Component {

const columns = [
{
name : "component",
name : "name",
label : "Component",
options : {
filter : false,
Expand All @@ -773,6 +773,10 @@ class DashboardComponent extends React.Component {
)
}
},
customBodyRender : (value) => {
const modifiedName = value.replace(/-[a-zA-Z0-9]*$/, ''); // Remove last hyphen and alphanumeric characters after it
return <span>{modifiedName}</span>;
},
},
{
name : "version",
Expand Down

0 comments on commit 120921e

Please sign in to comment.