catalog and bags
This commit is contained in:
@ -54,7 +54,13 @@ const SearchHistoryDropdown: React.FC<SearchHistoryDropdownProps> = ({
|
||||
{uniqueQueries.map((item) => (
|
||||
<button
|
||||
key={item.id}
|
||||
onClick={() => onItemClick(item.searchQuery)}
|
||||
onClick={() => {
|
||||
if ((item.searchType === 'ARTICLE' || item.searchType === 'OEM') && item.articleNumber) {
|
||||
onItemClick(item.articleNumber);
|
||||
} else {
|
||||
onItemClick(item.searchQuery);
|
||||
}
|
||||
}}
|
||||
className="search-history-item-custom"
|
||||
style={{ cursor: 'pointer' }}
|
||||
>
|
||||
|
Reference in New Issue
Block a user