Fix JS console warning

This commit is contained in:
Deluan 2023-01-23 10:25:06 -05:00
parent 34277f238c
commit 40cac5c367
1 changed files with 8 additions and 7 deletions

View File

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