Changed: Remove lodash reference from Selector files

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
pull/496/head
Qstick 6 years ago
parent 9c9fec70d8
commit 9e183fd0fd

@ -1,4 +1,3 @@
import _ from 'lodash';
import { createSelector } from 'reselect';
function createQueueItemSelector() {
@ -10,7 +9,7 @@ function createQueueItemSelector() {
return null;
}
return _.find(details.items, (item) => {
return details.items.find((item) => {
return item.album.id === albumId;
});
}

@ -1,4 +1,3 @@
import _ from 'lodash';
import { createSelector } from 'reselect';
function createTrackFileSelector() {
@ -10,7 +9,7 @@ function createTrackFileSelector() {
return null;
}
return _.find(trackFiles.items, { id: trackFileId });
return trackFiles.items.find((trackFile) => trackFile.id === trackFileId);
}
);
}

Loading…
Cancel
Save