Incorporated the feedback
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user