diff --git a/config/changelog.yaml b/config/changelog.yaml index 954c3ec202f..7903d699af8 100644 --- a/config/changelog.yaml +++ b/config/changelog.yaml @@ -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) diff --git a/packages/components/src/DraftConfigurator/PatternOptionMillimeter/index.js b/packages/components/src/DraftConfigurator/PatternOptionMillimeter/index.js index eb3fc65abb5..3227f17abc3 100644 --- a/packages/components/src/DraftConfigurator/PatternOptionMillimeter/index.js +++ b/packages/components/src/DraftConfigurator/PatternOptionMillimeter/index.js @@ -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)