|
|
|
@@ -53,9 +53,7 @@ export const convertQueryStringForFrontend = (queryURL) => { |
|
|
|
return queryObjectToReturn.toString(); |
|
|
|
} else { |
|
|
|
queryObjectToReturn.set(KEY_PAGE, queryObject.get(KEY_PAGE)); |
|
|
|
return ( |
|
|
|
queryObjectToReturn.toString() |
|
|
|
); |
|
|
|
return queryObjectToReturn.toString(); |
|
|
|
} |
|
|
|
} |
|
|
|
return queryObjectToReturn.toString(); |
|
|
|
@@ -142,7 +140,15 @@ export const convertQueryStringForBackend = (queryURL) => { |
|
|
|
if (!queryObject.has(KEY_PAGE)) { |
|
|
|
newQueryObject.append(KEY_PAGE, "1"); |
|
|
|
} else { |
|
|
|
newQueryObject.append(KEY_PAGE, queryObject.get(KEY_PAGE)); |
|
|
|
if ( |
|
|
|
queryObject.has(KEY_CATEGORY) || |
|
|
|
queryObject.has(KEY_LOCATION) || |
|
|
|
queryObject.has(KEY_COMPANY) |
|
|
|
) { |
|
|
|
newQueryObject.delete(KEY_PAGE); |
|
|
|
} else { |
|
|
|
newQueryObject.append(KEY_PAGE, queryObject.get(KEY_PAGE)); |
|
|
|
} |
|
|
|
} |
|
|
|
return newQueryObject.toString(); |
|
|
|
}; |