tweaks for empty descriptions in inspector

This commit is contained in:
Pogodaanton 2020-06-25 11:05:46 +02:00
parent b75bf80e20
commit 426ac760c5
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ const FVSidebarContent: React.ComponentType<FVSidebarContentProps> = memo(
({ managedClasses, fileData }) => {
const { t } = useTranslation("fileview");
const uploaded = new Date(fileData.timestamp * 1000);
const title = fileData.title === "untitled" ? "-" : fileData.title;
const title = !fileData.title || fileData.title === "untitled" ? "-" : fileData.title;
return (
<div className={managedClasses.fv_sidebarContent}>