Revert "Convert some instances (filter, find, pick) to native from lodash"

This reverts commit d8a0aac9c3.
This commit is contained in:
ta264
2020-09-28 06:26:23 +01:00
parent 9075fdc1c1
commit 081fe64bff
21 changed files with 94 additions and 69 deletions

View File

@@ -1,3 +1,4 @@
import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import VirtualTable from 'Components/Table/VirtualTable';
@@ -55,7 +56,7 @@ class ImportMovieTable extends Component {
id
} = prevItem;
const item = items.find({ id });
const item = _.find(items, { id });
if (!item) {
onRemoveSelectedStateItem(id);
@@ -66,7 +67,7 @@ class ImportMovieTable extends Component {
const isSelected = selectedState[id];
const isExistingMovie = !!selectedMovie &&
prevProps.allMovies.some({ tmdbId: selectedMovie.tmdbId });
_.some(prevProps.allMovies, { tmdbId: selectedMovie.tmdbId });
// Props doesn't have a selected movie or
// the selected movie is an existing movie.