RED-8151: fixed maximum call stack error.

This commit is contained in:
Nicoleta Panaghiu 2024-01-09 14:37:23 +02:00
parent f8a78c8238
commit 42eef62fa2

View File

@ -390,9 +390,10 @@ export class PdfProxyService {
}
const annotationChangesAllowed = !this.#isDocumine || !this._state.file().excludedFromAutomaticAnalysis;
actions = this._multiSelectService.inactive()
? [...actions, ...this._pdfAnnotationActionsService.get(annotationWrappers, annotationChangesAllowed)]
: [];
actions =
this._multiSelectService.inactive() && !this._documentViewer.selectedText.length
? [...actions, ...this._pdfAnnotationActionsService.get(annotationWrappers, annotationChangesAllowed)]
: [];
this._pdf.instance.UI.annotationPopup.update(actions);
}