fix: update key prop in SelectModal options to use item.id for consistency
This commit is contained in:
@@ -44,7 +44,7 @@ function SelectModal({
|
||||
onChange={(_, value) => setSelected(value)}
|
||||
>
|
||||
{options.map(item => (
|
||||
<Option value={item.id} key={item[displayKey]}>
|
||||
<Option value={item.id} key={item.id}>
|
||||
{item[displayKey]}
|
||||
</Option>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user