catalog and bags

This commit is contained in:
egortriston
2025-07-30 13:57:16 +03:00
parent a8f783767f
commit 95e6b33b56
9 changed files with 123 additions and 40 deletions

View File

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