diff --git a/front/composables/useMyAppShare.ts b/front/composables/useMyAppShare.ts index 3f0a5ce..76ceed4 100644 --- a/front/composables/useMyAppShare.ts +++ b/front/composables/useMyAppShare.ts @@ -80,7 +80,7 @@ const createFileShare = async (data: { const { files, config } = data || {} return await Promise.all( times(files.length, async (i) => { - const { id, name } = files[i] + const { id, name } = files[i] || {} return await createShare({ type: 'file', data: id,