From 6fd2b56954cb24c52f4af02988108ca7fd1233dc Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 26 Nov 2024 12:06:16 -0300 Subject: [PATCH] fix: prevent error when click at signer to add to document Signed-off-by: Vitor Mattos --- src/Components/Request/VisibleElements.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Components/Request/VisibleElements.vue b/src/Components/Request/VisibleElements.vue index 272873696e..79aca25ece 100644 --- a/src/Components/Request/VisibleElements.vue +++ b/src/Components/Request/VisibleElements.vue @@ -213,6 +213,9 @@ export default { this.filesStore.loading = false }, onSelectSigner(signer) { + if (!this.$refs.pdfEditor) { + return + } this.signerSelected = signer const canvasList = this.$refs.pdfEditor.$refs.vuePdfEditor.$refs.pdfBody.querySelectorAll('canvas') canvasList.forEach((canvas) => {