From 0bbd12cd1f5223626ee1df4872e8337153093f2f Mon Sep 17 00:00:00 2001 From: Emiliano Ciavatta Date: Fri, 4 Sep 2020 23:32:45 +0200 Subject: Add flushAll param to /api/pcaps/upload and /api/pcaps/file --- frontend/src/components/ConnectionContent.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'frontend') diff --git a/frontend/src/components/ConnectionContent.js b/frontend/src/components/ConnectionContent.js index 40fdcad..905a56d 100644 --- a/frontend/src/components/ConnectionContent.js +++ b/frontend/src/components/ConnectionContent.js @@ -21,7 +21,8 @@ class ConnectionContent extends Component { if (this.props.connection !== null && ( this.props.connection !== prevProps.connection || this.state.format !== prevState.format)) { this.setState({loading: true}); - axios.get(`/api/streams/${this.props.connection.id}?format=${this.state.format}`).then(res => { + // TODO: limit workaround. + axios.get(`/api/streams/${this.props.connection.id}?format=${this.state.format}&limit=999999`).then(res => { this.setState({ connectionContent: res.data, loading: false @@ -52,13 +53,6 @@ class ConnectionContent extends Component { return (
- {/**/} - {/* */} - {/* ciao*/} - {/* */} - {/**/} - - format -- cgit v1.2.3-70-g09d2