Skip to content

Commit

Permalink
Merge pull request #3518 from bettyblocks/feat/include-value-select-c…
Browse files Browse the repository at this point in the history
…omponent-in-page-state-pfr-924

feat: include value of Select component in page state PFR-924
  • Loading branch information
ingmar-stipriaan authored Nov 6, 2024
2 parents 6efeaaf + 702857e commit eb285f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/selectInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
? JSON.stringify({ uuid: defaultValueText })
: defaultValueText || placeholderLabelText;

const [currentValue, setCurrentValue] = useState(resolvedCurrentValue);
const [currentValue, setCurrentValue] = usePageState(resolvedCurrentValue);

useEffect(() => {
setCurrentValue(resolvedCurrentValue);
Expand Down

0 comments on commit eb285f1

Please sign in to comment.