mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
UI Action Handler Changes, Misc Fixes
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import _ from 'lodash';
|
||||
import getSectionState from 'Utilities/State/getSectionState';
|
||||
|
||||
function getProviderState(payload, getState, getFromState) {
|
||||
function getProviderState(payload, getState, section) {
|
||||
const id = payload.id;
|
||||
const state = getFromState(getState());
|
||||
const state = getSectionState(getState(), section, true);
|
||||
const pendingChanges = Object.assign({}, state.pendingChanges);
|
||||
const pendingFields = state.pendingChanges.fields || {};
|
||||
delete pendingChanges.fields;
|
||||
|
||||
Reference in New Issue
Block a user