diff --git a/src/handlers/restrictions-query.ts b/src/handlers/restrictions-query.ts index f2e1cdf..f34f25b 100644 --- a/src/handlers/restrictions-query.ts +++ b/src/handlers/restrictions-query.ts @@ -116,7 +116,7 @@ export default async (event: APIGatewayProxyEvent): Promise = Object.values(restrictionsUniqueCollection) const restrictions = restrictionValues.map((restriction) => { - restriction.slug = `${slugify(restriction.restrictionLevel)}-${slugify(restriction.label)}` + restriction.slug = `${slugify(restriction.restrictionLevel)}-${slugify(restriction.theme)}` const { alertLevel, document, type, ...rest } = restriction return rest