diff --git a/src/components/UI/Sticky/Sticky.js b/src/components/UI/Sticky/Sticky.js index 361a0b3a..910617e5 100644 --- a/src/components/UI/Sticky/Sticky.js +++ b/src/components/UI/Sticky/Sticky.js @@ -28,7 +28,7 @@ export class StickyContext extends Component { } updateStickies = (ref) => { - const stickyContextTop = ref.getBoundingClientRect().top; + const stickyContextTop = ref && ref.getBoundingClientRect().top; this.subscriptions.forEach((fn) => { fn(stickyContextTop); }); };