<FormControl
size="small"
variant="outlined"
style={{ width: '100%' }}
>
<InputLabel>Type</InputLabel>
<Select
label="type"
value={'' || selectValue}
onChange={handleChange}
>
{type?.getCode?.map(option => (
<MenuItem key={option.COM_CD} value={option.COM_CD}>
{option.COM_CD_NM}
</MenuItem>
))
)}
</Select>
</FormControl>
This is the error. (You have provided an out-of-range value undefined for the select component.
Consider providing a value that matches one of the available options or ''.
The available values are U001, U002. )
In my opinion, unfinished occurred while loading while receiving data called type, which is causing an error. In this case, what should we do? Can I ignore it because it's a warning, not an error?
2 parts to my suggestion.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With