1
0
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:
sparky3387
2025-09-28 08:40:07 +10:00
committed by GitHub
parent 1610e54650
commit cf6b21aef6
15 changed files with 436 additions and 62 deletions
@@ -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;
}