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.
2 parents 9e624d2 + 8c285c4 commit fc5830eCopy full SHA for fc5830e
1 file changed
src/component/File-drag-drop.jsx
@@ -39,7 +39,7 @@ const app = ({ superState, dispatcher }) => {
39
fileRef.current.value = null;
40
if (e.dataTransfer.files.length === 1
41
&& e.dataTransfer.files[0].name.split('.').slice(-1)[0] === 'graphml') {
42
- readFile(superState, dispatcher, { target: e.dataTransfer });
+ readFile(superState, dispatcher, e.dataTransfer.files[0]);
43
}
44
});
45
}, []);
0 commit comments