Skip to content

Commit 362853b

Browse files
loivseniOvergaard
authored andcommitted
Bugfix: Upload files with no extensions
1 parent e7df0d3 commit 362853b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packages/core/components/input-upload-field/input-upload-field.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class UmbInputUploadFieldElement extends UUIFormControlMixin(UmbLitElemen
125125

126126
#setExtensions(value: Array<string>) {
127127
// TODO: The dropzone uui component does not support file extensions without a dot. Remove this when it does.
128-
this.extensions = value.map((extension) => {
128+
this.extensions = value?.map((extension) => {
129129
return `.${extension}`;
130130
});
131131
}

0 commit comments

Comments
 (0)