aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js')
-rw-r--r--web/src/js/components/eventlog.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/src/js/components/eventlog.js b/web/src/js/components/eventlog.js
index 650f7cd3..51f1578e 100644
--- a/web/src/js/components/eventlog.js
+++ b/web/src/js/components/eventlog.js
@@ -58,8 +58,9 @@ var EventLogContents = React.createClass({
},
componentWillReceiveProps: function (nextProps) {
if (nextProps.filter !== this.props.filter) {
- this.props.filter = nextProps.filter; // Dirty: Make sure that view filter sees the update.
- this.state.view.recalculate();
+ this.state.view.recalculate(entry =>
+ nextProps.filter[entry.level]
+ );
}
},
getDefaultProps: function () {