Skip to content

Instantly share code, notes, and snippets.

@jasonLaster
Created October 27, 2020 23:32
Show Gist options
  • Select an option

  • Save jasonLaster/119e482e7c100fa17702ed15e86eb820 to your computer and use it in GitHub Desktop.

Select an option

Save jasonLaster/119e482e7c100fa17702ed15e86eb820 to your computer and use it in GitHub Desktop.
diff --git a/src/devtools/client/webconsole/components/FilterBar/FilterBar.js b/src/devtools/client/webconsole/components/FilterBar/FilterBar.js
index 9ff16c6e..28fb6abe 100644
--- a/src/devtools/client/webconsole/components/FilterBar/FilterBar.js
+++ b/src/devtools/client/webconsole/components/FilterBar/FilterBar.js
@@ -162,7 +162,7 @@ class FilterBar extends Component {
return dom.button({
className: "devtools-button devtools-clear-icon",
title: l10n.getStr("webconsole.clearButton.tooltip"),
- onClick: () => this.props.messagesClearEvaluations(),
+ onClick: () => this.props.clearEvaluations(),
});
}
@@ -216,7 +216,7 @@ class FilterBar extends Component {
}
renderSearchBox() {
- const { filteredMessagesCount } = this.props;
+ const { filteredMessagesCount, filterTextSet } = this.props;
let searchBoxSummary;
let searchBoxSummaryTooltip;
@@ -348,9 +348,9 @@ function mapStateToProps(state) {
};
}
-module.exports = connect(mapStateToProps, () => ({
+module.exports = connect(mapStateToProps, {
closeSplitConsole: actions.closeSplitConsole,
filterBarDisplayModeSet: actions.filterBarDisplayModeSet,
messagesClearEvaluations: actions.messagesClearEvaluations,
filterTextSet: actions.filterTextSet,
-}))(FilterBar);
+})(FilterBar);
diff --git a/src/devtools/client/webconsole/components/Output/ConsoleOutput.js b/src/devtools/client/webconsole/components/Output/ConsoleOutput.js
index cca99ccb..5a65d1fa 100644
--- a/src/devtools/client/webconsole/components/Output/ConsoleOutput.js
+++ b/src/devtools/client/webconsole/components/Output/ConsoleOutput.js
@@ -29,7 +29,6 @@ const { MESSAGE_TYPE } = require("devtools/client/webconsole/constants");
const {
getInitialMessageCountForViewport,
} = require("devtools/client/webconsole/utils/messages.js");
-const { bindActionCreators } = require("redux");
function messageExecutionPoint(msg) {
const { executionPoint, lastExecutionPoint } = msg;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment