mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-20 21:54:58 -04:00
New: Setting to allow for grabbing season packs even if some episodes already meet cutoff
Closes #6378
This commit is contained in:
@@ -5,7 +5,7 @@ import updateSectionState from 'Utilities/State/updateSectionState';
|
||||
function createSetSettingValueReducer(section) {
|
||||
return (state, { payload }) => {
|
||||
if (section === payload.section) {
|
||||
const { name, value } = payload;
|
||||
const { name, value, isFloat } = payload;
|
||||
const newState = getSectionState(state, section);
|
||||
newState.pendingChanges = Object.assign({}, newState.pendingChanges);
|
||||
|
||||
@@ -15,7 +15,12 @@ function createSetSettingValueReducer(section) {
|
||||
let parsedValue = null;
|
||||
|
||||
if (_.isNumber(currentValue) && value != null) {
|
||||
parsedValue = parseInt(value);
|
||||
// Use isFloat property to determine parsing method
|
||||
if (isFloat) {
|
||||
parsedValue = parseFloat(value);
|
||||
} else {
|
||||
parsedValue = parseInt(value);
|
||||
}
|
||||
} else {
|
||||
parsedValue = value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user