Skip to content

Commit 5921b1d

Browse files
committed
fix(types): refine draw component typing
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent ddab912 commit 5921b1d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/components/Draw/Draw.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ function close() {
115115
emit('close')
116116
}
117117
118-
async function save(base64: string) {
118+
async function save(base64: string | null) {
119+
if (!base64) {
120+
return
121+
}
119122
signatureElementsStore.loadSignatures()
120123
await signatureElementsStore.save(props.type, base64)
121124
emit('save')

0 commit comments

Comments
 (0)