chore: fix ContentType usage (#2353)
* chore: fix ContentType usage * chore: fix specs
This commit is contained in:
@@ -120,7 +120,7 @@ const LinkedItemBubble = ({
|
||||
<span className="flex items-center overflow-hidden overflow-ellipsis whitespace-nowrap">
|
||||
{tagTitle && <span className="text-passive-1">{tagTitle.titlePrefix}</span>}
|
||||
<span className="flex items-center gap-1">
|
||||
{link.type === 'linked-by' && link.item.content_type !== ContentType.Tag && (
|
||||
{link.type === 'linked-by' && link.item.content_type !== ContentType.TYPES.Tag && (
|
||||
<span className={!isBidirectional ? 'hidden group-focus:block' : ''}>Linked By:</span>
|
||||
)}
|
||||
{getItemTitleInContextOfLinkBubble(link.item)}
|
||||
|
||||
@@ -115,7 +115,7 @@ const LinkedItemBubblesContainer = ({
|
||||
|
||||
return (
|
||||
existsInAllItemLinks &&
|
||||
(link.item.content_type === ContentType.Note ? existsInNotesLinkingToItem : existsInFilesLinkingToItem)
|
||||
(link.item.content_type === ContentType.TYPES.Note ? existsInNotesLinkingToItem : existsInFilesLinkingToItem)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user