Change componentDidUnmount to componentWillUnmount (https://github.com/woocommerce/woocommerce-admin/pull/563)
This commit is contained in:
parent
34d7944988
commit
d611817fc7
|
@ -73,7 +73,7 @@ class Table extends Component {
|
|||
window.addEventListener( 'resize', this.updateTableShadow );
|
||||
}
|
||||
|
||||
componentDidUnmount() {
|
||||
componentWillUnmount() {
|
||||
window.removeEventListener( 'resize', this.updateTableShadow );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue