skip optional signature

This commit is contained in:
Pete Matsyburka committed 2024-06-20 17:52:40 +03:00
1 parent b71a66a082
commit 4ae834d6f7
1 file changed
+5 -1
@@ -582,7 +582,11 @@ export default {
return resolve(attachment)
})
}).catch((error) => {
return reject(error)
if (error.message === 'Image too small' && this.field.required === false) {
return resolve({})
} else {
return reject(error)
}
})
})
}