File tree Expand file tree Collapse file tree
src/views/SignPDF/_partials Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -535,11 +535,11 @@ const canCreateSignature = computed(() => {
535535const ableToSign = computed (() => signStore .ableToSign )
536536const signRequestUuid = computed (() => {
537537 const doc = signStore .document
538- const signer = doc .signers ?.find ((row ) => row .me ) ?? doc .signers ?.[0 ]
539- const fromDoc = doc .signRequestUuid || doc .sign_request_uuid || doc .signUuid || doc .sign_uuid
538+ const signer = doc ? .signers ?.find ((row ) => row .me ) ?? doc ? .signers ?.[0 ]
539+ const fromDoc = doc ? .signRequestUuid || doc ? .sign_request_uuid || doc ? .signUuid || doc ? .sign_uuid
540540 const fromSigner = signer ?.sign_uuid
541- const isApprover = doc .settings ?.isApprover
542- const fromFile = isApprover ? doc .uuid : null
541+ const isApprover = doc ? .settings ?.isApprover
542+ const fromFile = isApprover ? doc ? .uuid : null
543543 return String (fromDoc || fromSigner || fromFile || loadState (' libresign' , ' sign_request_uuid' , ' ' ) || ' ' )
544544})
545545
You can’t perform that action at this time.
0 commit comments