Skip to content

Commit

Permalink
TA#66823 [FIX] web_search_date_range : duplicate filters (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
rivo2302 authored Oct 11, 2024
1 parent 35cb1fe commit f9b56f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web_search_date_range/static/src/js/search_model.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ patch(SearchModel.prototype, "web_search_date_range.SearchModel", {
filteredItems.forEach(item => {
if (item.isRelativeDateFilter) {
const exists = searchItemsArray.some(searchItem =>
searchItem.description === item.description && searchItem.type === item.type
searchItem.description === item.description && searchItem.type === item.type && searchItem.isRelativeDateFilter
);

if (!exists) {
this._createGroupOfSearchItems([item]);
}
Expand Down

1 comment on commit f9b56f2

@r0j0dev
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GG amin'ny le migration XD

Please sign in to comment.