Skip to content

Commit d19b038

Browse files
authored
Merge pull request #3775 from project-koku/release_prod-stable.15955
Deployment commit for prod-stable
2 parents c5675c0 + 63c39c3 commit d19b038

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/routes/details/components/breakdown/breakdownHeader.tsx

+10-9
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ class BreakdownHeader extends React.Component<BreakdownHeaderProps, any> {
136136
? orgUnitIdKey
137137
: groupBy;
138138

139+
const showClusterInfo = clusterInfoComponent && isClusterInfoToggleEnabled;
140+
139141
return (
140142
<header style={styles.header}>
141143
<Flex justifyContent={{ default: 'justifyContentSpaceBetween' }} style={styles.headerContent}>
@@ -166,15 +168,14 @@ class BreakdownHeader extends React.Component<BreakdownHeaderProps, any> {
166168
<Flex justifyContent={{ default: 'justifyContentSpaceBetween' }} style={styles.perspectiveContainer}>
167169
<FlexItem>
168170
<Flex direction={{ default: 'column' }}>
169-
{description ||
170-
(clusterInfoComponent && isClusterInfoToggleEnabled && (
171-
<FlexItem style={styles.description}>
172-
{description}
173-
{clusterInfoComponent && isClusterInfoToggleEnabled ? (
174-
<span style={!description ? styles.clusterInfoContainer : undefined}>{clusterInfoComponent}</span>
175-
) : null}
176-
</FlexItem>
177-
))}
171+
{(description || showClusterInfo) && (
172+
<FlexItem style={styles.description}>
173+
{description}
174+
{showClusterInfo ? (
175+
<span style={!description ? styles.clusterInfoContainer : undefined}>{clusterInfoComponent}</span>
176+
) : null}
177+
</FlexItem>
178+
)}
178179
{dataDetailsComponent && isClusterInfoToggleEnabled ? <FlexItem>{dataDetailsComponent}</FlexItem> : null}
179180
{showCostDistribution && (
180181
<FlexItem style={styles.costDistribution}>

0 commit comments

Comments
 (0)