Fixed an incorrect condition for an empty array

Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2022-09-29 14:39:06 +02:00
parent 8f1148f77e
commit c59e05111b
@@ -60,7 +60,7 @@ export function FetchedEntityRefLinks<
return 'metadata' in current ? acc : [...acc, parseEntityRef(current)];
}, new Array<CompoundEntityRef>());
return refs
return refs.length > 0
? (
await catalogApi.getEntities({
filter: refs.map(ref => ({