Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// setSelectedEffect(null);
// }, [currentTrackId]);
if (!currentTrack) {
return null;
}
return (
<div>
<h2>Track</h2>
<p>{currentTrack.id}</p>
<h3>Instrument</h3>
<select value="{currentTrack.instrumentType}"> {
return {
label: instrument.name,
value: instrument.id,
};
})}
onChange={(selectedOption) => {
// const selectedOption = event.target[event.target.selectedIndex];
// const type = selectedOption.getAttribute('data-type');
dispatch({
type: types.UPDATE_INSTRUMENT,
instrumentType: selectedOption.value,
});
}}
/>
{/* </select></div>