fix presentation uploader crash

This commit is contained in:
Ramón Souza 2024-02-01 15:49:13 -03:00
parent 5398df1a8a
commit e13fc75f6d

View File

@ -1038,11 +1038,13 @@ class PresentationUploader extends Component {
const formattedDownloadAriaLabel = `${formattedDownloadLabel} ${item.filename}`; const formattedDownloadAriaLabel = `${formattedDownloadLabel} ${item.filename}`;
const hasAnyAnnotation = hasAnnotations(item.id); const isNew = item.id.indexOf(item.filename) !== -1;
const hasAnyAnnotation = isNew ? false : hasAnnotations(item.id);
return ( return (
<Styled.PresentationItem <Styled.PresentationItem
key={item.id} key={item.id}
isNew={item.id.indexOf(item.filename) !== -1} isNew={isNew}
uploading={isUploading} uploading={isUploading}
converting={isConverting} converting={isConverting}
error={hasError} error={hasError}