fix(components): Correctly load saved value for mm options
Closes #1136
This commit is contained in:
parent
05bf9ca34d
commit
499996ea05
2 changed files with 5 additions and 1 deletions
|
@ -43,6 +43,9 @@
|
|||
Fixed:
|
||||
charlie:
|
||||
- Add `@freesewing/plugin-mirror` as peer dependency
|
||||
components:
|
||||
- Correctly load saved value for mm options
|
||||
See [#1136](https://github.com/freesewing/freesewing/issues/1136)
|
||||
paco:
|
||||
- The waistband was incorrectly using the cuff widht
|
||||
See [#1113](https://github.com/freesewing/freesewing/issues/1113)
|
||||
|
|
|
@ -16,10 +16,11 @@ const PatternOptionMillimeter = ({
|
|||
updateValue,
|
||||
name,
|
||||
dflt,
|
||||
value,
|
||||
raiseEvent,
|
||||
noDocs
|
||||
}) => {
|
||||
const [val, setVal] = useState(dflt)
|
||||
const [val, setVal] = useState(value === null ? dflt : value)
|
||||
const [previousValue, setPreviousValue] = useState(dflt)
|
||||
const [expanded, setExpanded] = useState(false)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue