Files
klz-cables.com/.pnpm-store/v10/files/a0/ec2a2a8c8000141fb9159aa803adad7155242775d9fea7dd81644bd3fbc424a9c4c1d3d0674d6a51f15c2b697d60f033311a2d3d7c21ec7afde13025886ad5
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

20 lines
577 B
Plaintext

export const transformHasManyText = ({ field, locale, ref, textRows, withinArrayOrBlockLocale })=>{
let result;
if (withinArrayOrBlockLocale) {
result = textRows.reduce((acc, { locale, text })=>{
if (locale === withinArrayOrBlockLocale) {
acc.push(text);
}
return acc;
}, []);
} else {
result = textRows.map(({ text })=>text);
}
if (locale) {
ref[field.name][locale] = result;
} else {
ref[field.name] = result;
}
};
//# sourceMappingURL=hasManyText.js.map