diff --git a/core/app/api/v0/c/[communitySlug]/site/[...ts-rest]/route.ts b/core/app/api/v0/c/[communitySlug]/site/[...ts-rest]/route.ts index 0f64574fd..4f4790373 100644 --- a/core/app/api/v0/c/[communitySlug]/site/[...ts-rest]/route.ts +++ b/core/app/api/v0/c/[communitySlug]/site/[...ts-rest]/route.ts @@ -353,7 +353,7 @@ const handler = createNextHandler( cookies: false, }); - const { pubTypeId, stageId, filters, ...rest } = query; + const { pubTypeId, stageId, filters, ...rest } = query ?? {}; const manuallyParsedFilters = manuallyParsePubFilterQueryParams(request.url, query);