Skip to content

Commit 7317541

Browse files
mocca102Mudaafi
andauthored
Update src/hooks/useCioAutocomplete.ts
Co-authored-by: Ahmad Mudaafi' <[email protected]>
1 parent 84616d3 commit 7317541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useCioAutocomplete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const useCioAutocomplete = (options: UseCioAutocompleteOptions) => {
119119

120120
// Products always have links, Search Suggestions with getSearchResultsUrl have links
121121
const hasLink =
122-
item.data?.url || (item.section === 'Search Suggestions' && getSearchResultsUrl);
122+
item.data?.url || (item.section === 'Search Suggestions' && getSearchResultsUrl) || false;
123123

124124
const nonInteractiveItemsProps = {
125125
tabIndex: 0,

0 commit comments

Comments
 (0)