From 0f0a28c81cc73d2eade3188ba470343f16dc5478 Mon Sep 17 00:00:00 2001 From: Emiliano Ciavatta Date: Fri, 10 Jul 2020 14:58:21 +0200 Subject: To be removed --- frontend/src/views/Connections.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'frontend/src/views') diff --git a/frontend/src/views/Connections.js b/frontend/src/views/Connections.js index 5548c4c..e4a7b01 100644 --- a/frontend/src/views/Connections.js +++ b/frontend/src/views/Connections.js @@ -37,6 +37,8 @@ class Connections extends Component { this.props.onSelected(c); } + + handleScroll(e) { let relativeScroll = e.currentTarget.scrollTop / (e.currentTarget.scrollHeight - e.currentTarget.clientHeight); if (!this.state.loading && relativeScroll > this.scrollBottomThreashold) { @@ -57,7 +59,9 @@ class Connections extends Component { async loadConnections(params) { let url = "/api/connections"; if (params !== undefined) { - url += "?" + objectToQueryString(params); + const urlParams = new URLSearchParams(window.location.search); + let obj = Object.fromEntries(urlParams.entries()); + url += "?" + objectToQueryString({...params, ...obj}); // TODO: remove this shit } this.setState({loading: true}); let res = await axios.get(url); @@ -140,7 +144,7 @@ class Connections extends Component { - {redirect} + {/*{redirect}*/} ); } -- cgit v1.2.3-70-g09d2