aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/filters
diff options
context:
space:
mode:
authorEmiliano Ciavatta2020-09-30 11:29:04 +0000
committerEmiliano Ciavatta2020-09-30 11:29:04 +0000
commit43135c255d82aa7c54ea83b14369c93425ae75f6 (patch)
tree34a0f4e80fde301c3c4905c180b4b18882428811 /frontend/src/components/filters
parentd994a21a0dfae9ee026e8aa3ccdee6c213c523aa (diff)
Complete pcap page
Diffstat (limited to 'frontend/src/components/filters')
-rw-r--r--frontend/src/components/filters/RulesConnectionsFilter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/components/filters/RulesConnectionsFilter.js b/frontend/src/components/filters/RulesConnectionsFilter.js
index f4d0b1c..8366189 100644
--- a/frontend/src/components/filters/RulesConnectionsFilter.js
+++ b/frontend/src/components/filters/RulesConnectionsFilter.js
@@ -24,7 +24,7 @@ class RulesConnectionsFilter extends Component {
let params = new URLSearchParams(this.props.location.search);
let activeRules = params.getAll("matched_rules") || [];
- backend.getJson("/api/rules").then(res => {
+ backend.get("/api/rules").then(res => {
let rules = res.json.flatMap(rule => rule.enabled ? [{id: rule.id, name: rule.name}] : []);
activeRules = rules.filter(rule => activeRules.some(id => rule.id === id));
this.setState({rules, activeRules, mounted: true});