From 379f8ab3ad0c8a0754fcc817ddfbc8cc42bfb143 Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Tue, 13 Oct 2026 23:17:30 +0000 Subject: [PATCH] fix(charts): return notFound for invalid catalog collection IDs --- .../_library/charts.catalog.collections.$collectionId.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/_library/charts.catalog.collections.$collectionId.tsx b/src/routes/_library/charts.catalog.collections.$collectionId.tsx index 6da23f2b6..39b423dbd 100644 --- a/src/routes/_library/charts.catalog.collections.$collectionId.tsx +++ b/src/routes/_library/charts.catalog.collections.$collectionId.tsx @@ -1,5 +1,6 @@ import { createFileRoute, notFound } from '@tanstack/react-router' import { ChartsCatalog } from '~/components/charts/ChartsCatalogPages' +import { isChartsCatalogCaseId } from '~/utils/charts-catalog' import { getChartsCatalogCollection } from '~/utils/charts-catalog.functions' import { seo } from '~/utils/seo' @@ -7,6 +8,7 @@ export const Route = createFileRoute( '/_library/charts/catalog/collections/$collectionId', )({ loader: async ({ params }) => { + if (!isChartsCatalogCaseId(params.collectionId)) throw notFound() const data = await getChartsCatalogCollection({ data: { collectionId: params.collectionId }, })