diff --git a/frontend/src/components/business/ms-add-attachment/saveAsFilePopover.vue b/frontend/src/components/business/ms-add-attachment/saveAsFilePopover.vue index 01927c0246..9d7a33d093 100644 --- a/frontend/src/components/business/ms-add-attachment/saveAsFilePopover.vue +++ b/frontend/src/components/business/ms-add-attachment/saveAsFilePopover.vue @@ -158,7 +158,11 @@ fileName: saveFileForm.value.name, originalName: props.savingFile.name || props.savingFile.fileName || '', }); - emit('finish', res, `${saveFileForm.value.name}.${props.savingFile.name?.split('.').pop()}`); + emit( + 'finish', + res, + `${saveFileForm.value.name}.${(props.savingFile.name || props.savingFile.fileName)?.split('.').pop()}` + ); Message.success(t('ms.add.attachment.saveAsSuccess')); handleSaveFileCancel(); }