From c59e05111bfec4fcf31273a339f15f028cafb774 Mon Sep 17 00:00:00 2001 From: bnechyporenko Date: Thu, 29 Sep 2022 14:39:06 +0200 Subject: [PATCH] Fixed an incorrect condition for an empty array Signed-off-by: bnechyporenko --- .../src/components/EntityRefLink/FetchedEntityRefLinks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/catalog-react/src/components/EntityRefLink/FetchedEntityRefLinks.tsx b/plugins/catalog-react/src/components/EntityRefLink/FetchedEntityRefLinks.tsx index 72c9aa5125..88b92b4689 100644 --- a/plugins/catalog-react/src/components/EntityRefLink/FetchedEntityRefLinks.tsx +++ b/plugins/catalog-react/src/components/EntityRefLink/FetchedEntityRefLinks.tsx @@ -60,7 +60,7 @@ export function FetchedEntityRefLinks< return 'metadata' in current ? acc : [...acc, parseEntityRef(current)]; }, new Array()); - return refs + return refs.length > 0 ? ( await catalogApi.getEntities({ filter: refs.map(ref => ({