Fixed an issue in filter in FetchedEntityRefLinks.tsx

Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2022-09-27 17:44:53 +02:00
parent 14659fd6a5
commit 9e6b3c3adc
@@ -61,7 +61,15 @@ export function FetchedEntityRefLinks<
}, new Array<CompoundEntityRef>());
return refs
? (await catalogApi.getEntities({ filter: refs })).items
? (
await catalogApi.getEntities({
filter: refs.map(ref => ({
kind: ref.kind,
'metadata.namespace': ref.namespace,
'metadata.name': ref.name,
})),
})
).items
: (entityRefs as Array<Entity>);
}, [entityRefs]);