Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit d409b67

Browse files
committed
Refactor tailLogs() into its own function
1 parent a2fb654 commit d409b67

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/view/cli.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,13 @@ class LogOutput extends Component {
9090
}
9191

9292
get printLogs() {
93+
this.tailLogs();
94+
return this.props.logs;
95+
}
96+
97+
tailLogs() {
9398
const opt = { animated: false };
9499
this._tScroll = setTimeout(() => this._ref.current.scrollToEnd(opt), 50);
95-
return this.props.logs;
96100
}
97101

98102
render() {

0 commit comments

Comments
 (0)