Files
klz-cables.com/.pnpm-store/v10/files/8a/6edc274b7faa5323ad682b7956129e2e683f601f5a8a26f0e310c2b6210122185ee6091e049450b83cead78ed2d962d5780121f472ff57ccb4fca754f4d4cc
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

27 lines
691 B
Plaintext

export const appendVersionToQueryKey = (query = {})=>{
return Object.entries(query).reduce((res, [key, val])=>{
if ([
'AND',
'and',
'OR',
'or'
].includes(key) && Array.isArray(val)) {
return {
...res,
[key.toLowerCase()]: val.map((subQuery)=>appendVersionToQueryKey(subQuery))
};
}
if (key !== 'id') {
return {
...res,
[`version.${key}`]: val
};
}
return {
...res,
parent: val
};
}, {});
};
//# sourceMappingURL=appendVersionToQueryKey.js.map