fix container is undefined error

This commit is contained in:
casperlamboo 2017-12-13 14:40:43 +01:00
parent 12653a16de
commit 8fbf167a6f

View File

@ -101,6 +101,7 @@ class App extends React.Component {
};
componentWillUnmount() {
const { container } = this.refs;
container.removeEventListener('drop', this.onDrop);
}