Skip to content

Commit

Permalink
Remove shorthands option from LodashModuleReplacementPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
benvinegar committed Jun 24, 2017
1 parent 284063d commit 1cd2042
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const KeyValueList = React.createClass({
data = Object.keys(data).map(key => [key, data[key]]);
}

data = this.props.isSorted ? _.sortBy(data, (key, value) => key) : data;
data = this.props.isSorted ? _.sortBy(data, [(key, value) => key]) : data;

const props = this.props.onClick ? {onClick: this.props.onClick} : {};
return (
Expand Down
2 changes: 1 addition & 1 deletion src/sentry/static/sentry/app/options.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const definitions = [
}
];

const definitionsMap = _.keyBy(definitions, 'key');
const definitionsMap = _.keyBy(definitions, def => def.key);

const disabledReasons = {
diskPriority: 'This setting is defined in config.yml and may not be changed via the web UI.',
Expand Down
1 change: 0 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ var config = {
},
plugins: [
new LodashModuleReplacementPlugin({
shorthands: true,
collections: true
}),
new webpack.optimize.CommonsChunkPlugin({
Expand Down

0 comments on commit 1cd2042

Please sign in to comment.