You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Part start and end setters receive strings from OptionTextField #272
PartStart and PartEnd (src/app/store/PartOptions.ts) are Option<number>, so setValue takes a number. The partition editor renders them with OptionTextField, which calls option.setValue( event.target.value ) with a string. Option.setValue converts a valid string to a number through the yup number schema. An invalid string (for example abc, or an empty field) is stored unchanged in the number-typed value.
#250 handles this without changing runtime behaviour. The editor's module-local PartPositionOption widens setValue to ( value: string | number ) => void.
To fix: either give OptionTextField a numeric path that parses before calling setValue, or type the part position options to take the raw string and convert it in the store. Then remove the widened setter from src/app/PartitionEditor.tsx.
Activity