Merged PR 1997: fix(filter-input.to-record-mapping): Removed " from InputType NumberRange map...

fix(filter-input.to-record-mapping): Removed " from InputType NumberRange mapping

Ref: #5425
This commit is contained in:
Nino Righi
2025-11-03 10:00:32 +00:00
committed by Lorenz Hilpert
parent f175b5d2af
commit 7894c7b768

View File

@@ -53,11 +53,11 @@ export function mapFilterInputToRecord(
} else if (input.type === InputType.NumberRange) {
const { min, max } = input;
if (min && max) {
acc[input.key] = `"${min}-${max}"`;
acc[input.key] = `${min}-${max}`;
} else if (min) {
acc[input.key] = `"${min}-"`;
acc[input.key] = `${min}-`;
} else if (max) {
acc[input.key] = `"-${max}"`;
acc[input.key] = `-${max}`;
}
}
return acc;