mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-03 19:27:14 +00:00
commit
454cca43f0
2 changed files with 6 additions and 4 deletions
|
|
@ -999,8 +999,9 @@ var EventLogContents = _react2.default.createClass({
|
|||
},
|
||||
componentWillReceiveProps: function componentWillReceiveProps(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(function (entry) {
|
||||
return nextProps.filter[entry.level];
|
||||
});
|
||||
}
|
||||
},
|
||||
getDefaultProps: function getDefaultProps() {
|
||||
|
|
|
|||
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue