From 2080725abf5ecdc2aaf36cf0667c89c1d47c3b83 Mon Sep 17 00:00:00 2001 From: Jan Biasi Date: Thu, 9 Jan 2025 11:22:09 +0100 Subject: [PATCH] chore(templates): fix multi-tenant selector value --- .../src/components/TenantSelector/index.client.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/multi-tenant/src/components/TenantSelector/index.client.tsx b/examples/multi-tenant/src/components/TenantSelector/index.client.tsx index f0b6a55b69a..9b09511a424 100644 --- a/examples/multi-tenant/src/components/TenantSelector/index.client.tsx +++ b/examples/multi-tenant/src/components/TenantSelector/index.client.tsx @@ -8,9 +8,9 @@ import * as qs from 'qs-esm' import type { Tenant, User } from '@/payload-types' import { getTenantAdminTenantAccessIDs } from '@/utilities/getTenantAccessIDs' +import { extractID } from '@/utilities/extractID' import { TENANT_COOKIE_NAME } from '@/collections/Tenants/cookie' import { userRole } from '@/collections/Users/roles' -import { extractID } from '@/utilities/extractID' import './index.scss' @@ -85,12 +85,14 @@ export const TenantSelector = ({ initialCookie }: { initialCookie?: string }) => return (
opt.value === initialCookie)?.value} + value={options.find((opt) => String(opt.value) === String(initialCookie))?.value} />
)