From 6006d47c1f3397862bb13c782d66689067135bdb Mon Sep 17 00:00:00 2001 From: Emiliano Ciavatta Date: Sat, 9 May 2020 14:34:08 +0200 Subject: Add infinite scroll to connections, implement connection actions --- frontend/src/views/MainPane.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'frontend/src/views/MainPane.js') diff --git a/frontend/src/views/MainPane.js b/frontend/src/views/MainPane.js index 0fc083e..e84f94c 100644 --- a/frontend/src/views/MainPane.js +++ b/frontend/src/views/MainPane.js @@ -19,9 +19,7 @@ class MainPane extends Component { const id = this.props.match.params.id; this.setState({id: id}); - axios.get(`/api/streams/${id}`).then(res => this.setState({connectionContent: res.data})) - - + axios.get(`/api/streams/${id}`).then(res => this.setState({connectionContent: res.data})); } } @@ -30,12 +28,8 @@ class MainPane extends Component { const id = this.props.match.params.id; this.setState({id: id}); - axios.get(`/api/streams/${id}`).then(res => this.setState({connectionContent: res.data})) - - + axios.get(`/api/streams/${id}`).then(res => this.setState({connectionContent: res.data})); } - - } render() { -- cgit v1.2.3-70-g09d2