Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit 865e35d

Browse files
bors[bot]peterbe
andcommitted
Merge #235
235: no underscore needed #23 r=rehandalal a=peterbe friday hack. Co-authored-by: Peter Bengtsson <mail@peterbe.com>
2 parents d5bb06d + 29405ee commit 865e35d

6 files changed

Lines changed: 9 additions & 11 deletions

File tree

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
"react-scripts": "1.1.4",
2222
"redux": "4.0.0",
2323
"redux-logger": "3.0.6",
24-
"redux-thunk": "2.3.0",
25-
"underscore": "1.9.1"
24+
"redux-thunk": "2.3.0"
2625
},
2726
"scripts": {
2827
"start": "react-app-rewired start",

src/components/data/QueryFilteredRecipes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import PropTypes from 'prop-types';
22
import React from 'react';
33
import { connect } from 'react-redux';
4-
import { isEqual } from 'underscore';
4+
import { isEqual } from 'lodash';
55

66
import { fetchFilteredRecipesPage } from 'console/state/recipes/actions';
77

src/components/data/QueryMultipleExtensions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import PropTypes from 'prop-types';
22
import React from 'react';
33
import { connect } from 'react-redux';
4-
import { isEqual } from 'underscore';
4+
import { isEqual } from 'lodash';
55

66
import { fetchExtensionsPage as fetchExtensionsPageAction } from 'console/state/extensions/actions';
77

src/components/tables/DataList.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
55
import React from 'react';
66
import { connect } from 'react-redux';
77
import { withRouter } from 'react-router';
8-
import { isEmpty, mapObject } from 'underscore';
8+
import { isEmpty } from 'lodash';
99

1010
import { getCurrentURL as getCurrentURLSelector } from 'console/state/router/selectors';
1111

@@ -42,7 +42,10 @@ export default class DataList extends React.PureComponent {
4242

4343
handleChangeSortFilters(pagination, filters, sorter) {
4444
const { getCurrentURL, history } = this.props;
45-
const filterParams = mapObject(filters, values => values && values.join(','));
45+
const filterParams = {};
46+
Object.entries(filters).forEach(([key, values]) => {
47+
filterParams[key] = values && values.join(',');
48+
});
4649

4750
let ordering;
4851
if (!isEmpty(sorter)) {

src/state/auth/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { omit } from 'underscore';
1+
import { omit } from 'lodash';
22

33
import {
44
USER_LOGIN,

yarn.lock

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8445,10 +8445,6 @@ uglifyjs-webpack-plugin@^0.4.6:
84458445
uglify-js "^2.8.29"
84468446
webpack-sources "^1.0.1"
84478447

8448-
underscore@1.9.1:
8449-
version "1.9.1"
8450-
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.9.1.tgz#06dce34a0e68a7babc29b365b8e74b8925203961"
8451-
84528448
underscore@~1.4.4:
84538449
version "1.4.4"
84548450
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.4.4.tgz#61a6a32010622afa07963bf325203cf12239d604"

0 commit comments

Comments
 (0)