We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1a14e2 commit 8d821d6Copy full SHA for 8d821d6
src/components/ui/UiFileInput.vue
@@ -47,7 +47,6 @@ import {
47
onMounted,
48
ref,
49
shallowRef,
50
- watch,
51
} from 'vue';
52
import { useToast } from 'vue-toastification';
53
import UiButton from './UiButton.vue';
@@ -173,15 +172,4 @@ onMounted(() => {
173
172
fileName.value = props.modelValue.filename;
174
}
175
});
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
-);
187
</script>
0 commit comments