mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 09:33:19 +03:00
parent
408d95fe09
commit
9d792f5b8c
@ -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) => {
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
this.observer.unobserve(this.el);
|
||||
this.observer && this.observer.unobserve(this.el);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
Loading…
Reference in New Issue
Block a user