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

7 lines
348 B
Plaintext

import { isNumber } from './isNumber.js';
export function parseDocumentID({ id, collectionSlug, payload }) {
const idType = payload.collections[collectionSlug]?.customIDType ?? payload.db.defaultIDType;
return id ? idType === 'number' && isNumber(id) ? parseFloat(String(id)) : id : undefined;
}
//# sourceMappingURL=parseDocumentID.js.map