From 311bd449bd15bba7299a9a40c8147d46c5967e3c Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 15 Jun 2021 18:07:43 +0200 Subject: [PATCH] Apply suggestions from code review Signed-off-by: Patrik Oldsberg --- .changeset/thick-donkeys-fold.md | 2 +- .../src/components/SystemDiagramCard/SystemDiagramCard.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.changeset/thick-donkeys-fold.md b/.changeset/thick-donkeys-fold.md index 4720439479..f341724188 100644 --- a/.changeset/thick-donkeys-fold.md +++ b/.changeset/thick-donkeys-fold.md @@ -2,4 +2,4 @@ '@backstage/plugin-catalog': patch --- -Fix for Diagram component using hardcoded namespace +Fix for Diagram component using hard coded namespace. diff --git a/plugins/catalog/src/components/SystemDiagramCard/SystemDiagramCard.tsx b/plugins/catalog/src/components/SystemDiagramCard/SystemDiagramCard.tsx index 4e34fb1910..36fac17d0a 100644 --- a/plugins/catalog/src/components/SystemDiagramCard/SystemDiagramCard.tsx +++ b/plugins/catalog/src/components/SystemDiagramCard/SystemDiagramCard.tsx @@ -157,7 +157,9 @@ export function SystemDiagramCard() { kind: ['Component', 'API', 'Resource', 'System', 'Domain'], 'spec.system': [ currentSystemName, - `${entity.metadata.namespace || ENTITY_DEFAULT_NAMESPACE}/${currentSystemName}`, + `${ + entity.metadata.namespace || ENTITY_DEFAULT_NAMESPACE + }/${currentSystemName}`, ], }, });