diff --git a/src/components/upload-file/UploadFile.vue b/src/components/upload-file/UploadFile.vue index d2d2b0d4..86f28847 100644 --- a/src/components/upload-file/UploadFile.vue +++ b/src/components/upload-file/UploadFile.vue @@ -88,8 +88,13 @@ watch(currentFileSelected, () => { file.value.findIndex((v, i) => { if (v.url?.includes(currentFileSelected.value)) { currentIndex.value = i; - currentMode.value = - props.dropdownList?.[currentIndexDropdownList.value].label || 'other'; + + const tempValue = + props.dropdownList?.findIndex((v) => + v.value.includes(currentFileSelected.value.split('-')[0]), + ) || 0; + + .value = props.dropdownList?.[tempValue].label || 'other'; } }); });