Fixes #639
@ -15,7 +15,7 @@ export default class extends React.Component {
}
componentWillUnmount() {
this.observer.unobserve(this.element);
this.observer && this.observer.unobserve(this.element);
render() {
@ -24,7 +24,7 @@ export const withPinnedHeader = (WrappedComponent, selector) => {
this.observer.unobserve(this.el);
this.observer && this.observer.unobserve(this.el);