Files
klz-cables.com/.pnpm-store/v10/files/7d/843ea57b74593e4a97b12add4048b70e3bc2e097e3748a4a8e2e87cb455cba3d46aae0fbcf6c9c4ce2928bcef763f2851617bb74eb19a84779b93cd350e0fb
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

25 lines
729 B
Plaintext

import { traverseFields } from './traverseFields.js';
/**
* This function is responsible for running beforeDuplicate hooks
* against a document including all locale data.
* It will run each field's beforeDuplicate hook
* and return the resulting docWithLocales.
*/ export const beforeDuplicate = async ({ id, collection, context, doc, overrideAccess, req })=>{
await traverseFields({
id,
collection,
context,
doc,
fields: collection.fields,
overrideAccess,
parentIndexPath: '',
parentIsLocalized: false,
parentPath: '',
parentSchemaPath: '',
req,
siblingDoc: doc
});
return doc;
};
//# sourceMappingURL=index.js.map