Fix JS console warning

This commit is contained in:
Deluan 2023-01-23 10:25:06 -05:00 committed by Joe Stump
parent f1a0ef614d
commit 39115fadfe
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -49,13 +49,14 @@ const DownloadMenuDialog = () => {
maxWidth={'sm'}
>
<DialogTitle id="download-dialog">
{translate('message.downloadDialogTitle', {
resource: translate(`resources.${recordType}.name`, {
smart_count: 1,
}).toLocaleLowerCase(),
name: record?.name || record?.title,
size: formatBytes(record?.size),
})}
{recordType &&
translate('message.downloadDialogTitle', {
resource: translate(`resources.${recordType}.name`, {
smart_count: 1,
}).toLocaleLowerCase(),
name: record?.name || record?.title,
size: formatBytes(record?.size),
})}
</DialogTitle>
<DialogContent>
<SimpleForm toolbar={null} variant={'outlined'}>