Skip to content

Commit

Permalink
IBX-9132: [ALW] Search tag issue (#1378)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti authored Nov 5, 2024
1 parent 6cb0fea commit eac32a2
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const useSearchByQueryFetch = () => {
dateCriterion = null,
useAlwaysAvailable = true,
isBookmarked = null,
fieldCriterionData = null,
) => {
const handleFetch = (response) => {
dispatchLoadedLocationsAction({ type: 'CLEAR_LOCATIONS' });
Expand Down Expand Up @@ -86,6 +87,12 @@ export const useSearchByQueryFetch = () => {
query.IsBookmarkedCriterion = true;
}

if (fieldCriterionData) {
query.AND = {
Field: fieldCriterionData,
};
}

const isImageCriterionDataEmpty = !imageCriterionData || Object.keys(imageCriterionData).length === 0;

if (!isImageCriterionDataEmpty) {
Expand Down

0 comments on commit eac32a2

Please sign in to comment.