From 62dc7a2b1ad14516723816cab6549557f08a66b4 Mon Sep 17 00:00:00 2001 From: tperehinets Date: Mon, 31 Jul 2023 13:47:54 +0300 Subject: [PATCH] Added maxDepth to catalogGraphParams Signed-off-by: tperehinets --- .changeset/cuddly-colts-repeat.md | 5 +++++ .../src/components/CatalogGraphCard/CatalogGraphCard.tsx | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/cuddly-colts-repeat.md diff --git a/.changeset/cuddly-colts-repeat.md b/.changeset/cuddly-colts-repeat.md new file mode 100644 index 0000000000..ab2ed260af --- /dev/null +++ b/.changeset/cuddly-colts-repeat.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-graph': patch +--- + +Added maxDepth parameter to the catalogGraphParams in CatalogGraphCard. diff --git a/plugins/catalog-graph/src/components/CatalogGraphCard/CatalogGraphCard.tsx b/plugins/catalog-graph/src/components/CatalogGraphCard/CatalogGraphCard.tsx index ae4ad850a4..7976fa66bb 100644 --- a/plugins/catalog-graph/src/components/CatalogGraphCard/CatalogGraphCard.tsx +++ b/plugins/catalog-graph/src/components/CatalogGraphCard/CatalogGraphCard.tsx @@ -108,6 +108,7 @@ export const CatalogGraphCard = ( const catalogGraphParams = qs.stringify( { rootEntityRefs: [stringifyEntityRef(entity)], + maxDepth: maxDepth, unidirectional, mergeRelations, selectedKinds: kinds,