Skip to content

Commit d80e5b7

Browse files
fix(Draw): avoid parallel signature reload on save
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent fe50d1b commit d80e5b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Draw/Draw.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<script setup lang="ts">
3535
import { t } from '@nextcloud/l10n'
36-
import { computed, onBeforeUnmount, onMounted, ref } from 'vue'
36+
import { computed, nextTick, onBeforeUnmount, onMounted, ref } from 'vue'
3737
3838
import {
3939
mdiCloudUpload,
@@ -116,8 +116,8 @@ function close() {
116116
}
117117
118118
async function save(base64: string) {
119-
signatureElementsStore.loadSignatures()
120119
await signatureElementsStore.save(props.type, base64)
120+
await nextTick()
121121
emit('save')
122122
close()
123123
}

0 commit comments

Comments
 (0)