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:
commit
f9490862dc
@ -390,9 +390,10 @@ export class PdfProxyService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const annotationChangesAllowed = !this.#isDocumine || !this._state.file().excludedFromAutomaticAnalysis;
|
const annotationChangesAllowed = !this.#isDocumine || !this._state.file().excludedFromAutomaticAnalysis;
|
||||||
actions = this._multiSelectService.inactive()
|
actions =
|
||||||
? [...actions, ...this._pdfAnnotationActionsService.get(annotationWrappers, annotationChangesAllowed)]
|
this._multiSelectService.inactive() && !this._documentViewer.selectedText.length
|
||||||
: [];
|
? [...actions, ...this._pdfAnnotationActionsService.get(annotationWrappers, annotationChangesAllowed)]
|
||||||
|
: [];
|
||||||
this._pdf.instance.UI.annotationPopup.update(actions);
|
this._pdf.instance.UI.annotationPopup.update(actions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user