Skip to content

Commit 4408906

Browse files
Update app/components/shared/UrlCombobox.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2a61158 commit 4408906

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

app/components/shared/UrlCombobox.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,12 @@ export default function UrlCombobox({
244244
role="listbox"
245245
aria-label="Options"
246246
>
247-
{filteredOptions.map((option, index) => (
248-
renderOption
247+
{filteredOptions.map((option, index) => {
248+
const content = renderOption
249249
? renderOption(option, highlightedIndex === index, index)
250-
: defaultRenderOption(option, highlightedIndex === index, index)
251-
))}
250+
: defaultRenderOption(option, highlightedIndex === index, index);
251+
return <div key={option.value}>{content}</div>;
252+
})}
252253
</div>
253254
)}
254255
</div>

0 commit comments

Comments
 (0)