Fix correct index for node switch
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user