diff options
author | Emiliano Ciavatta | 2020-05-09 12:34:08 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-05-09 12:34:08 +0000 |
commit | 6006d47c1f3397862bb13c782d66689067135bdb (patch) | |
tree | a86e5a275063485cc93a5d8b7077ec119900037d /frontend/src/views/MainPane.js | |
parent | dee7d7dfcbec7ef4475896935873f04d4df0d40f (diff) |
Add infinite scroll to connections, implement connection actions
Diffstat (limited to 'frontend/src/views/MainPane.js')
-rw-r--r-- | frontend/src/views/MainPane.js | 10 |
1 files changed, 2 insertions, 8 deletions
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() { |