Skip to content

Commit dcfe477

Browse files
authored
fix(orchestrator):[UI] Empty values section in Results pane should not be rendered (#402)
Signed-off-by: Lior Soffer <[email protected]>
1 parent 8a0b57f commit dcfe477

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-orchestrator': patch
3+
---
4+
5+
[UI] Empty values section in Results pane should not be rendered

workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowResult.tsx

+7-5
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,13 @@ const WorkflowOutputs = ({
286286
</Grid>
287287
)}
288288

289-
<Grid item md={12} key="__links" className={styles.values}>
290-
<AboutField label="Values">
291-
<StructuredMetadataTable dense metadata={nonLinks} />
292-
</AboutField>
293-
</Grid>
289+
{nonLinks?.length > 0 && (
290+
<Grid item md={12} key="__links" className={styles.values}>
291+
<AboutField label="Values">
292+
<StructuredMetadataTable dense metadata={nonLinks} />
293+
</AboutField>
294+
</Grid>
295+
)}
294296
</>
295297
);
296298
};

0 commit comments

Comments
 (0)