Fixed: Don't show other movies files in details UI on import/refresh

pull/4848/head
Qstick 4 years ago
parent d3697c0339
commit eb299bfb1f

@ -11,20 +11,25 @@ import MovieFileEditorTableContent from './MovieFileEditorTableContent';
function createMapStateToProps() {
return createSelector(
(state, { movieId }) => movieId,
(state) => state.movieFiles,
(state) => state.settings.languages,
(state) => state.settings.qualityProfiles,
createMovieSelector(),
(
movieId,
movieFiles,
languageProfiles,
qualityProfiles
) => {
const languages = languageProfiles.items;
const qualities = getQualities(qualityProfiles.schema.items);
const filesForMovie = movieFiles.items.filter((obj) => {
return obj.movieId === movieId;
});
return {
items: movieFiles.items,
items: filesForMovie,
isDeleting: movieFiles.isDeleting,
isSaving: movieFiles.isSaving,
error: null,

@ -7,13 +7,19 @@ import ExtraFileTableContent from './ExtraFileTableContent';
function createMapStateToProps() {
return createSelector(
(state, { movieId }) => movieId,
(state) => state.extraFiles,
createMovieSelector(),
(
ExtraFiles
movieId,
extraFiles
) => {
const filesForMovie = extraFiles.items.filter((obj) => {
return obj.movieId === movieId;
});
return {
items: ExtraFiles.items,
items: filesForMovie,
error: null
};
}

Loading…
Cancel
Save