Skip to content

Commit 1a7665d

Browse files
Console error
1 parent 45fecfa commit 1a7665d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/Dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function Dropdown(props: DropdownProps) {
3737
<Menu.Items className={`absolute z-10 mt-2 w-40 origin-top-right rounded-md bg-white shadow-sm ring-1 ring-black ring-opacity-5 focus:outline-none ${props.itemsClasses ? props.itemsClasses : ''}`}>
3838
<div className="py-1">
3939
{props.options.map((option: any) => (
40-
<div key={option.id}>
40+
<div key={props.onlyArray ? option : option.id}>
4141
<Menu.Item >
4242
{({ active }) => (
4343
<a key={option.id}

0 commit comments

Comments
 (0)