We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b3da8e + a66e75c commit ca90dbbCopy full SHA for ca90dbb
1 file changed
packages/shared/src/components/FileUpload.vue
@@ -48,9 +48,9 @@ const headers = [
48
];
49
const file = defineModel({ type: Object });
50
const rows = computed(() => {
51
- if (file.value) {
+ if (file.value && Object.keys(file.value).length > 0) {
52
const name = file.value.name;
53
- const extension = name.split(".").pop()?.toLowerCase() || "-";
+ const extension = name?.split(".").pop()?.toLowerCase() || "-";
54
const type = extension;
55
const createdAt = file.value.createdAt
56
? dayjs(file.value.createdAt).format("YYYY-MM-DD HH:mm")
0 commit comments