We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f6577e commit 5ca4139Copy full SHA for 5ca4139
packages/app/src/app/overmind/namespaces/files/internalActions.ts
@@ -99,7 +99,7 @@ export const uploadFiles: AsyncAction<
99
file.type === 'application/json') &&
100
dataURI.length < MAX_FILE_SIZE
101
) {
102
- const text = atob(dataURI.replace(/^.*base64,/, ''));
+ const text = dataURI ? atob(dataURI.replace(/^.*base64,/, '')) : '';
103
parsedFiles[filePath] = {
104
content: text,
105
isBinary: false,
0 commit comments