Skip to content
Permalink
Browse files

fix null ref case in MessageContainer

  • Loading branch information
staltz authored and xcarpentier committed Feb 3, 2020
1 parent 6c17d59 commit 96ea937c7af2ba9c59f722077f6e3f60df2d0842
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/MessageContainer.tsx
@@ -237,7 +237,7 @@ export default class MessageContainer<
const { inverted } = this.props
if (inverted) {
this.scrollTo({ offset: 0, animated })
} else {
} else if (this.props.forwardRef && this.props.forwardRef.current) {
this.props.forwardRef!.current!.scrollToEnd({ animated })
}
}

0 comments on commit 96ea937

Please sign in to comment.
You can’t perform that action at this time.