mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-18 00:09:37 +02:00
Fixed: Refresh discovery movies state on refresh lists
This commit is contained in:
parent
71f700e240
commit
d8862eedd3
@ -78,7 +78,8 @@ function createMapDispatchToProps(dispatch, props) {
|
|||||||
|
|
||||||
onImportListSyncPress() {
|
onImportListSyncPress() {
|
||||||
dispatch(executeCommand({
|
dispatch(executeCommand({
|
||||||
name: commandNames.IMPORT_LIST_SYNC
|
name: commandNames.IMPORT_LIST_SYNC,
|
||||||
|
commandFinished: this.dispatchFetchListMovies
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -9,7 +9,7 @@ import getNewMovie from 'Utilities/Movie/getNewMovie';
|
|||||||
import getSectionState from 'Utilities/State/getSectionState';
|
import getSectionState from 'Utilities/State/getSectionState';
|
||||||
import updateSectionState from 'Utilities/State/updateSectionState';
|
import updateSectionState from 'Utilities/State/updateSectionState';
|
||||||
import translate from 'Utilities/String/translate';
|
import translate from 'Utilities/String/translate';
|
||||||
import { removeItem, set, updateItem } from './baseActions';
|
import { removeItem, set, update, updateItem } from './baseActions';
|
||||||
import createHandleActions from './Creators/createHandleActions';
|
import createHandleActions from './Creators/createHandleActions';
|
||||||
import createClearReducer from './Creators/Reducers/createClearReducer';
|
import createClearReducer from './Creators/Reducers/createClearReducer';
|
||||||
import createSetClientSideCollectionFilterReducer from './Creators/Reducers/createSetClientSideCollectionFilterReducer';
|
import createSetClientSideCollectionFilterReducer from './Creators/Reducers/createSetClientSideCollectionFilterReducer';
|
||||||
@ -507,11 +507,11 @@ export const actionHandlers = handleThunks({
|
|||||||
}).request;
|
}).request;
|
||||||
|
|
||||||
promise.done((data) => {
|
promise.done((data) => {
|
||||||
// set an Id so the selectors and updaters done blow up.
|
// set an ID so the selectors and updaters done blow up.
|
||||||
data = data.map((movie) => ({ ...movie, id: movie.tmdbId }));
|
data = data.map((movie) => ({ ...movie, id: movie.tmdbId }));
|
||||||
|
|
||||||
dispatch(batchActions([
|
dispatch(batchActions([
|
||||||
...data.map((movie) => updateItem({ section, ...movie })),
|
update({ section, data }),
|
||||||
|
|
||||||
set({
|
set({
|
||||||
section,
|
section,
|
||||||
|
Loading…
Reference in New Issue
Block a user