From ec91116ae62013b4b98dceef8e389fa580361914 Mon Sep 17 00:00:00 2001 From: Martin Porwoll Date: Fri, 13 Feb 2026 11:21:01 +0000 Subject: [PATCH] feat: re-enable custom admin views after Payload 3.76.1 fix Issue #15241 (TypeError: Missing parameter name with custom admin components + multi-tenant plugin) is resolved in Payload 3.76.1. Re-enable TenantDashboard custom view at /admin/tenant-dashboard. Co-Authored-By: Claude Opus 4.6 --- src/app/(payload)/admin/importMap.js | 2 ++ src/payload.config.ts | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/app/(payload)/admin/importMap.js b/src/app/(payload)/admin/importMap.js index 65bdee4..438b175 100644 --- a/src/app/(payload)/admin/importMap.js +++ b/src/app/(payload)/admin/importMap.js @@ -28,6 +28,7 @@ import { ItalicFeatureClient as ItalicFeatureClient_e70f5e05f09f93e00b997edb1ef0 import { CommunityNavLinks as CommunityNavLinks_4431db66fbe96916dda5fdbfa979ee1e } from '@/components/admin/CommunityNavLinks' import { TenantSelector as TenantSelector_d6d5f193a167989e2ee7d14202901e62 } from '@payloadcms/plugin-multi-tenant/rsc' import { TenantSelectionProvider as TenantSelectionProvider_d6d5f193a167989e2ee7d14202901e62 } from '@payloadcms/plugin-multi-tenant/rsc' +import { TenantDashboardView as TenantDashboardView_1468a86d093d5b2444131ed5ce14599e } from '@/components/admin/TenantDashboardView' import { CollectionCards as CollectionCards_f9c02e79a4aed9a3924487c0cd4cafb1 } from '@payloadcms/next/rsc' export const importMap = { @@ -61,5 +62,6 @@ export const importMap = { "@/components/admin/CommunityNavLinks#CommunityNavLinks": CommunityNavLinks_4431db66fbe96916dda5fdbfa979ee1e, "@payloadcms/plugin-multi-tenant/rsc#TenantSelector": TenantSelector_d6d5f193a167989e2ee7d14202901e62, "@payloadcms/plugin-multi-tenant/rsc#TenantSelectionProvider": TenantSelectionProvider_d6d5f193a167989e2ee7d14202901e62, + "@/components/admin/TenantDashboardView#TenantDashboardView": TenantDashboardView_1468a86d093d5b2444131ed5ce14599e, "@payloadcms/next/rsc#CollectionCards": CollectionCards_f9c02e79a4aed9a3924487c0cd4cafb1 } diff --git a/src/payload.config.ts b/src/payload.config.ts index 2bd8355..c621713 100644 --- a/src/payload.config.ts +++ b/src/payload.config.ts @@ -130,9 +130,14 @@ export default buildConfig({ components: { // Community Management Nav Links afterNavLinks: ['@/components/admin/CommunityNavLinks#CommunityNavLinks'], + // Custom Views - re-enabled after Payload 3.76.1 upgrade (Issue #15241 test) + views: { + TenantDashboard: { + Component: '@/components/admin/TenantDashboardView#TenantDashboardView', + path: '/tenant-dashboard', + }, + }, }, - // Note: Custom views with paths disabled due to path-to-regexp bug - // See BUG_REPORT_CUSTOM_VIEWS.md for details }, // Multi-Tenant Email Adapter email: multiTenantEmailAdapter,