mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 05:16:34 +02:00
Fixed: List UI Revamp
This commit is contained in:
@@ -26,11 +26,11 @@ function createUnoptimizedSelector(uiSection) {
|
||||
);
|
||||
}
|
||||
|
||||
function createAddMovieClientSideCollectionItemsSelector(uiSection) {
|
||||
function createDiscoverMovieClientSideCollectionItemsSelector(uiSection) {
|
||||
return createDeepEqualSelector(
|
||||
createUnoptimizedSelector(uiSection),
|
||||
(movies) => movies
|
||||
);
|
||||
}
|
||||
|
||||
export default createAddMovieClientSideCollectionItemsSelector;
|
||||
export default createDiscoverMovieClientSideCollectionItemsSelector;
|
@@ -1,13 +1,13 @@
|
||||
import { createSelector } from 'reselect';
|
||||
|
||||
function createAddListMovieSelector() {
|
||||
function createDiscoverMovieSelector() {
|
||||
return createSelector(
|
||||
(state, { movieId }) => movieId,
|
||||
(state) => state.addMovie,
|
||||
(state) => state.discoverMovie,
|
||||
(movieId, allMovies) => {
|
||||
return allMovies.items.find((movie) => movie.tmdbId === movieId);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export default createAddListMovieSelector;
|
||||
export default createDiscoverMovieSelector;
|
Reference in New Issue
Block a user