Merge branch 'RED-8151' into 'master'

RED-8151: fixed maximum call stack error.

See merge request redactmanager/red-ui!246
This commit is contained in:
Dan Percic 2024-01-09 13:38:54 +01:00
commit f9490862dc

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);
}