File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,13 +120,14 @@ type EnvelopeFileListResponse = {
120120 }
121121}
122122
123- type SignStore = Pick <ReturnType <typeof useSignStore >, ' document' | ' errors' | ' mounted' | ' initFromState' | ' setFileToSign' | ' queueAction' > & {
123+ type SignStore = Pick <ReturnType <typeof useSignStore >, ' document' | ' errors' | ' mounted' | ' initFromState' | ' setFileToSign' | ' queueAction' | ' setSigningErrors ' > & {
124124 document: SignDocument
125125 errors: SignError []
126126 mounted: boolean
127127 initFromState: () => Promise <void >
128128 setFileToSign: (file : SignDocument ) => void
129129 queueAction: (action : string ) => void
130+ setSigningErrors: (newErrors : SignError []) => void
130131}
131132
132133type FilesStore = Pick <ReturnType <typeof useFilesStore >, ' getAllFiles' | ' addFile' | ' selectFile' | ' getFile' > & {
@@ -235,10 +236,11 @@ const PDF_LOAD_ERROR_SCOPE = 'pdfLoad'
235236const hasPdfLoadError = computed (() => signStore .errors .some ((error ) => error .scope === PDF_LOAD_ERROR_SCOPE ))
236237
237238function setPdfLoadErrors(errors : SignError []) {
238- signStore . errors = errors .map ((error ) => ({
239+ const mappedErrors = errors .map ((error ) => ({
239240 ... error ,
240241 scope: PDF_LOAD_ERROR_SCOPE ,
241242 }))
243+ signStore .setSigningErrors (mappedErrors )
242244}
243245
244246function getRouteUuid() {
You can’t perform that action at this time.
0 commit comments