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

14 lines
474 B
Plaintext

// Helper function to create serializable value for client components
export const createSerializableValue = value => {
if (value === null || value === undefined) {
return 'null';
}
if (typeof value === 'object' && value?.relationTo && value?.value) {
return `${value.relationTo}:${value.value}`;
}
if (typeof value === 'object' && value?.id) {
return String(value.id);
}
return String(value);
};
//# sourceMappingURL=createSerializableValue.js.map