Parameterize static lens paths

This commit is contained in:
Sam Becker 2025-03-29 23:47:43 -05:00
parent 9bdb7da98c
commit e5146081d4

View File

@ -51,8 +51,8 @@ export const safelyGenerateLensStaticParams = (
lenses: Lenses,
) =>
lenses.map(({ lens: { make, model } }) => ({
make: make ?? MISSING_FIELD,
model,
make: make ? parameterize(make) : MISSING_FIELD,
model: parameterize(model),
}));
// Support keys for make-only and model-only lens queries