From 8eac71c77a22f0778b7a97c9e2c59de78d0c54d7 Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Thu, 11 Feb 2021 22:33:57 -0500 Subject: [PATCH] Clarify comments Signed-off-by: Adam Harvey --- .../src/components/SystemDiagram/SystemDiagram.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/catalog/src/components/SystemDiagram/SystemDiagram.tsx b/plugins/catalog/src/components/SystemDiagram/SystemDiagram.tsx index 8523e3c4bd..ff9ed10812 100644 --- a/plugins/catalog/src/components/SystemDiagram/SystemDiagram.tsx +++ b/plugins/catalog/src/components/SystemDiagram/SystemDiagram.tsx @@ -55,7 +55,7 @@ export function SystemDiagram({ entity }: SystemDiagramProps) { id: currentSystemNode, }); - // check if the system it has an assigned domain + // check if the system has an assigned domain // even if the domain object doesn't exist in the catalog, display it in the map if (catalogItem.spec?.domain) { systemNodes.push({ @@ -69,14 +69,14 @@ export function SystemDiagram({ entity }: SystemDiagramProps) { } } - // process any component assigned to the system + // process any entity assigned to the system if (catalogItem.spec?.system === currentSystemName) { systemNodes.push({ id: `${catalogItem.kind}:${catalogItem.metadata.name}`.toLowerCase(), }); - // check relations of the entity to see if it maps to anything in our map - // note those elements which are relations may, or may not, be explicitly + // check relations of the entity to see if it relates to other entities + // note those relations may, or may not, be explicitly // assigned to the system if (catalogItem.relations) { for (const relation of catalogItem.relations) {