Fix setting invalid value for reader settings

When changing a setting from DEFAULT to another value, the value was incorrectly wrapped in an array which lead to an invalid value to get set.
This then caused an error to be thrown, making the reader unusable

fixes #1099
This commit is contained in:
schroda
2026-05-09 13:00:36 +02:00
parent a7dfc05830
commit dcad44218b
3 changed files with 21 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ export const ButtonSelect = <Value extends string | number, MultiValue extends V
const newValue = (() => {
if (value === undefined) {
return [displayValue];
return isMultiSelect ? [displayValue] : displayValue;
}
if (isMultiSelect) {