Skip to content

Commit 8d821d6

Browse files
committed
refactor(UiFileInput): remove unused watch function to streamline component logic
1 parent b1a14e2 commit 8d821d6

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/components/ui/UiFileInput.vue

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ import {
4747
onMounted,
4848
ref,
4949
shallowRef,
50-
watch,
5150
} from 'vue';
5251
import { useToast } from 'vue-toastification';
5352
import UiButton from './UiButton.vue';
@@ -173,15 +172,4 @@ onMounted(() => {
173172
fileName.value = props.modelValue.filename;
174173
}
175174
});
176-
177-
watch(
178-
() => props.modelValue,
179-
(newValue) => {
180-
if (typeof newValue === 'object' && newValue?.filename) {
181-
fileName.value = newValue.filename;
182-
} else if (!newValue) {
183-
fileName.value = '';
184-
}
185-
}
186-
);
187175
</script>

0 commit comments

Comments
 (0)