Parameterize static lens paths
This commit is contained in:
parent
9bdb7da98c
commit
e5146081d4
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user