Fix correct index for node switch

This commit is contained in:
Sacha Weatherstone
2022-12-11 19:30:19 +10:00
parent b383b05b2a
commit 7ce8d82aa4
@@ -41,7 +41,7 @@ export const SearchResult = ({ group }: SearchResultProps): JSX.Element => {
</Combobox.Option> </Combobox.Option>
{command.subItems && ( {command.subItems && (
<div className=" ml-9 border-l"> <div className=" ml-9 border-l">
{command.subItems?.map((item) => ( {command.subItems?.map((item, index) => (
<Combobox.Option <Combobox.Option
key={index} key={index}
value={item} value={item}