diff --git a/frontend/src/Editor/Components/DropDown.jsx b/frontend/src/Editor/Components/DropDown.jsx index 723cb34c3a..64778c0256 100644 --- a/frontend/src/Editor/Components/DropDown.jsx +++ b/frontend/src/Editor/Components/DropDown.jsx @@ -145,6 +145,16 @@ export const DropDown = function DropDown({ // eslint-disable-next-line react-hooks/exhaustive-deps }, []); + useEffect(() => { + const exposedVariables = { + selectOption: async function (value) { + selectOption(value); + }, + }; + + setExposedVariables(exposedVariables); + }, [JSON.stringify(properties.values)]); + useEffect(() => { let newValue = undefined; let index = null;