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

13 lines
678 B
Plaintext

/**
* Safely resolves a deeply nested value from a document using dot-notation accessor paths.
*
* Used in list views to retrieve field values, especially for fields hoisted from nested structures
* like groups, where the accessor may be in the form of `group.someField`.
*
* @param doc - The document object to retrieve the value from.
* @param path - A dot-separated accessor string (e.g., "group.someField").
* @returns The resolved value at the specified path, or undefined if any segment is missing.
*/export const findValueFromPath = (doc, path) => {
return path.split('.').reduce((acc, key) => acc?.[key], doc);
};
//# sourceMappingURL=findValueFromPath.js.map