1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: add missing key to list of application projects (#6243)

This is in the applications table. To achieve it, we also wrap the text in a span.
This commit is contained in:
Thomas Heartman 2024-02-15 15:56:26 +08:00 committed by GitHub
parent 2999f8df2d
commit 011008a361
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,13 +24,14 @@ const StyledLink = styled(Link)(() => ({
const formatProject = (projectInfo: IApplicationUsage, index: number) => { const formatProject = (projectInfo: IApplicationUsage, index: number) => {
const separator = index !== 0 ? ', ' : ''; const separator = index !== 0 ? ', ' : '';
const key = projectInfo.project;
const projectElement = const projectElement =
projectInfo.project !== '*' ? ( projectInfo.project !== '*' ? (
<StyledLink to={`/projects/${projectInfo.project}`}> <StyledLink key={key} to={`/projects/${projectInfo.project}`}>
{projectInfo.project} {projectInfo.project}
</StyledLink> </StyledLink>
) : ( ) : (
projectInfo.project <span key={key}>{projectInfo.project}</span>
); );
const environments = ` (${projectInfo.environments.join(', ')})`; const environments = ` (${projectInfo.environments.join(', ')})`;