Browse Source

Fix correct index for node switch

pull/66/head
Sacha Weatherstone 4 years ago
parent
commit
7ce8d82aa4
No known key found for this signature in database GPG Key ID: 7AB2D7E206124B31
  1. 2
      src/components/CommandPalette/SearchResult.tsx

2
src/components/CommandPalette/SearchResult.tsx

@ -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}

Loading…
Cancel
Save