From 0093c8aaf23157b6efb274fbf1ea1eb638a2930d Mon Sep 17 00:00:00 2001 From: rikim Date: Tue, 23 Jun 2020 00:57:54 +0900 Subject: [PATCH] Modify Consumer to check in the middle of consuming when tailing msg --- app/components/Consumer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/Consumer.tsx b/app/components/Consumer.tsx index 9cf8532..4e47972 100644 --- a/app/components/Consumer.tsx +++ b/app/components/Consumer.tsx @@ -58,7 +58,7 @@ export class Consumer extends Component { } componentDidUpdate(): void { - if (this.messagesEnd) { + if (this.messagesEnd && this.props.consumer.topic) { this.messagesEnd.scrollIntoView({ behavior: 'smooth' }) } }