{
pieces.forEach((piece, index) => {
const active = isActiveOverlay(rowIndex, index);
const lastItem = index === pieces.length - 1;
+ const overlayValue = matches.next().value;
const overlay = !lastItem ?
- {matches.next().value} :
+ :
null
contents.push(
- {piece}{overlay}
+
+ {overlay}
);
})
}
return (
- {contents.length > 1 ? contents : item}
+ {contents.length > 1 ? contents : (
+
+ )}
);
}
diff --git a/src/renderer/components/layout/main-layout.tsx b/src/renderer/components/layout/main-layout.tsx
index e66fed3d17..baf3bd2f59 100755
--- a/src/renderer/components/layout/main-layout.tsx
+++ b/src/renderer/components/layout/main-layout.tsx
@@ -65,7 +65,7 @@ export class MainLayout extends React.Component {
return (
- {cluster.preferences.clusterName || cluster.contextName}
+ {cluster.name}