small tweaks on ItemTilte component

This commit is contained in:
mushka 2022-09-16 15:10:39 +03:00
parent 75c4bc53f4
commit ff5783cae1

View File

@ -25,7 +25,7 @@ const ItemTitle = ({
) : isGallery ? (
<StyledTitle>
<ReactSVG className="icon" src={getIcon(32, ".docxf")} />
<Text className="text">{selection.attributes.name_form}</Text>
<Text className="text">{selection?.attributes?.name_form}</Text>
</StyledTitle>
) : (
<StyledTitle>