mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[chore] fix lint errors
This commit is contained in:
@@ -20,7 +20,7 @@ export function BsmSelect<T = unknown>(props: Props<T>) {
|
||||
return (
|
||||
<select {...props} onChange={handleChange} defaultValue={props.options?.findIndex(opt => equal(opt.value, props.selected))}>
|
||||
{props.options && props.options.map((option, index) => (
|
||||
<option key={index} value={index}>{t(option.text)}</option>
|
||||
<option key={JSON.stringify(option)} value={index}>{t(option.text)}</option>
|
||||
))}
|
||||
</select>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user