Skip to content

Commit

Permalink
fix(SERVER): fix key warning (#1152)
Browse files Browse the repository at this point in the history
Signed-off-by: Shakira M <[email protected]>
Co-authored-by: Shakira M <[email protected]>
  • Loading branch information
2 people authored and whynowy committed Oct 4, 2023
1 parent 1d89a12 commit f83ea00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ui/src/components/common/SummaryPageLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ const getSectionComponentAndKey = (
component: <div key={key}>Missing props</div>,
};
}
key = `custom-${sectionIndex}`;
return {
key,
component: section.customComponent,
};
case SummarySectionType.COLLECTION:
Expand Down
4 changes: 3 additions & 1 deletion ui/src/components/pages/Pipeline/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export function Pipeline() {
<PipelineStatus
status={pipelineData?.pipeline?.status?.phase}
healthStatus={pipelineData?.status}
key={"pipeline-status"}
/>
),
},
Expand All @@ -52,12 +53,13 @@ export function Pipeline() {
<PipelineSummaryStatus
pipeline={pipelineData?.pipeline}
lag={pipelineData?.lag}
key={"pipeline-summary-status"}
/>
),
},
{
type: SummarySectionType.CUSTOM,
customComponent: <PipelineISBStatus isbData={isbData} />,
customComponent: <PipelineISBStatus isbData={isbData} key={"pipeline-isb-status"} />,
},
],
},
Expand Down

0 comments on commit f83ea00

Please sign in to comment.