Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
effectId: selectedEffect.id,
effectType: selectedEffect.type,
});
setSelectedEffect(null);
}
}}
>
<select value="{selectedEffect"> {
return {
label: effect.name,
value: effect.id,
};
}),
]}
onChange={(selectedOption) => {
const id = selectedOption.value;
const type = selectedOption.value;
setSelectedEffect({ id, type });
}}
/>
{/* </select> {
const selectedOption = event.target[event.target.selectedIndex];