Skip to content

Commit

Permalink
Merge pull request #3507 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 Oct 30, 2024
2 parents ac6be82 + 462f15e commit 8d078a7
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 8d078a7

Please sign in to comment.