Skip to content

Commit

Permalink
Modify Consumer to check in the middle of consuming when tailing msg
Browse files Browse the repository at this point in the history
  • Loading branch information
rikim committed Jun 22, 2020
1 parent cf40565 commit 0093c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/Consumer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class Consumer extends Component<Props> {
}

componentDidUpdate(): void {
if (this.messagesEnd) {
if (this.messagesEnd && this.props.consumer.topic) {
this.messagesEnd.scrollIntoView({ behavior: 'smooth' })
}
}
Expand Down

0 comments on commit 0093c8a

Please sign in to comment.