mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 12:43:11 +10:00
Review changes
This commit is contained in:
parent
465c8eb857
commit
148df2ba97
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,6 @@ import routeConfiguration from '../../routeConfiguration';
|
|||
|
||||
// customURLParams
|
||||
export const validURLParamForExtendedData = (paramKey, urlParams, customConfigKeys) => {
|
||||
//const configKey = customConfigKey(paramKey);
|
||||
const configKey = customConfigKeys[paramKey];
|
||||
const value = urlParams[paramKey];
|
||||
const valueArray = value ? value.split(',') : [];
|
||||
|
|
@ -32,7 +31,8 @@ export const validURLParamsForExtendedData = (params, customURLParams, customURL
|
|||
}, {});
|
||||
};
|
||||
|
||||
// extract search parameters, including a custom attribute named category
|
||||
// extract search parameters, including a custom URL params
|
||||
// which are validated by mapping the values to marketplace custom config.
|
||||
export const pickSearchParamsOnly = (params, customURLParams, customURLParamToConfig) => {
|
||||
const { address, origin, bounds, country, ...rest } = params || {};
|
||||
const boundsMaybe = bounds ? { bounds } : {};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue