fix presentation uploader crash
This commit is contained in:
parent
5398df1a8a
commit
e13fc75f6d
@ -1038,11 +1038,13 @@ class PresentationUploader extends Component {
|
||||
|
||||
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 (
|
||||
<Styled.PresentationItem
|
||||
key={item.id}
|
||||
isNew={item.id.indexOf(item.filename) !== -1}
|
||||
isNew={isNew}
|
||||
uploading={isUploading}
|
||||
converting={isConverting}
|
||||
error={hasError}
|
||||
|
Loading…
Reference in New Issue
Block a user