Fixes: Image uploads not working

This commit is contained in:
Tom Moor
2017-07-13 22:19:56 -07:00
parent f175d4c1d2
commit 1815ba4bc9
3 changed files with 13 additions and 7 deletions

View File

@ -19,6 +19,7 @@ class DropToImport extends Component {
activeClassName?: string,
rejectClassName?: string,
documents: DocumentsStore,
disabled: boolean,
history: Object,
};
state = {
@ -83,9 +84,12 @@ class DropToImport extends Component {
'history',
'documentId',
'collectionId',
'documents'
'documents',
'disabled'
);
if (this.props.disabled) return this.props.children;
return (
<Dropzone
accept="text/markdown, text/plain"