Merge pull request #19557 from ramonlsouza/issue-19505

fix: Upload the exported users list to presentation breaks the whiteboard
This commit is contained in:
Ramón Souza 2024-02-05 10:50:09 -03:00 committed by GitHub
commit 8d3473cd4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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}