From 8fbf167a6f15d5efa2fcd37c9e95bab8cb7b69b2 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Wed, 13 Dec 2017 14:40:43 +0100 Subject: [PATCH] fix container is undefined error --- src/components/App.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/App.js b/src/components/App.js index 6337c81..ed2cde0 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -101,6 +101,7 @@ class App extends React.Component { }; componentWillUnmount() { + const { container } = this.refs; container.removeEventListener('drop', this.onDrop); }