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

View File

@@ -41,7 +41,7 @@ export const SearchResult = ({ group }: SearchResultProps): JSX.Element => {
</Combobox.Option>
{command.subItems && (
<div className=" ml-9 border-l">
{command.subItems?.map((item) => (
{command.subItems?.map((item, index) => (
<Combobox.Option
key={index}
value={item}