From e13fc75f6d57f2d3fe96e6d912dab3abd19bd1fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Souza?= Date: Thu, 1 Feb 2024 15:49:13 -0300 Subject: [PATCH] fix presentation uploader crash --- .../presentation/presentation-uploader/component.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/component.jsx b/bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/component.jsx index dd1487b16a..53b728b725 100755 --- a/bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/component.jsx @@ -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 (