Incorporated the feedback

Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2022-09-19 18:21:23 +02:00
parent f4c67c3eca
commit aa6372c0bb
@@ -40,7 +40,7 @@ export function EntityRefLinks(props: EntityRefLinksProps) {
<>
{entityRefs.map((r, i) => {
const isCompoundEntityRef =
getTitle && typeof r !== 'string' && !('metadata' in r && getTitle);
getTitle && typeof r !== 'string' && !('metadata' in r);
const title = isCompoundEntityRef
? getTitle(r as CompoundEntityRef)