diff --git a/plugins/woocommerce-admin/client/components/table/table.js b/plugins/woocommerce-admin/client/components/table/table.js index e2e42bb961c..dffba041356 100644 --- a/plugins/woocommerce-admin/client/components/table/table.js +++ b/plugins/woocommerce-admin/client/components/table/table.js @@ -73,7 +73,7 @@ class Table extends Component { window.addEventListener( 'resize', this.updateTableShadow ); } - componentDidUnmount() { + componentWillUnmount() { window.removeEventListener( 'resize', this.updateTableShadow ); }