Files
klz-cables.com/.pnpm-store/v10/files/45/3be825c0ac454216d52432ef091d78d1400f1e1b20e65bb49cae6449e54c12b7e7a42448ba9e8cd4014658247c5d3fc739abbbe3d18d475933dbe17f17ae17
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
792 B
Plaintext

import { traverseFields } from './traverseFields.js';
/**
* This function is responsible for the following actions, in order:
* - Execute field hooks
*/ export const afterChange = async ({ collection, context, data, doc: incomingDoc, global, operation, previousDoc, req })=>{
await traverseFields({
collection,
context,
data,
doc: incomingDoc,
fields: collection?.fields || global?.fields,
global,
operation,
parentIndexPath: '',
parentIsLocalized: false,
parentPath: '',
parentSchemaPath: '',
previousDoc,
previousSiblingDoc: previousDoc,
req,
siblingData: data,
siblingDoc: incomingDoc
});
return incomingDoc;
};
//# sourceMappingURL=index.js.map