Skip to content

Commit 97a4c4f

Browse files
committed
Fix typecheck
1 parent 1031bb4 commit 97a4c4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/app/overmind/namespaces/files/internalActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const uploadFiles: AsyncAction<
9393
const extension = filePath.split('.').pop();
9494

9595
if (
96-
(textExtensions.includes(extension) ||
96+
((extension && textExtensions.includes(extension)) ||
9797
file.type.startsWith('text/') ||
9898
file.type === 'application/json') &&
9999
dataURI.length < MAX_FILE_SIZE

0 commit comments

Comments
 (0)