From 1a2053431e46a2edd8ea97a08903a470302f8095 Mon Sep 17 00:00:00 2001 From: Clemence Kyara Date: Thu, 21 Nov 2024 13:44:08 +0300 Subject: [PATCH 1/2] Fix auth.pass name --- apps/climatemappedafrica/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/climatemappedafrica/server.ts b/apps/climatemappedafrica/server.ts index 6bd524bb4..d63cd4dcb 100644 --- a/apps/climatemappedafrica/server.ts +++ b/apps/climatemappedafrica/server.ts @@ -43,7 +43,7 @@ const start = async (): Promise => { transportOptions: { auth: { user: process.env.SMTP_USER || "apikey", - apiKey: smtpAuthPass, + pass: smtpAuthPass, }, host: process.env.SMTP_HOST || "smtp.sendgrid.net", port: smtpPort, From 522ceb3a07a985541c2e9a16e964ff6fd1a4d3e9 Mon Sep 17 00:00:00 2001 From: Michael Hudson Nkotagu Date: Thu, 21 Nov 2024 14:34:44 +0300 Subject: [PATCH 2/2] fix: Fix failing build due to import of tsx component in js payload collections --- .../src/payload/components/allowedAppSelect/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/civicsignalblog/src/payload/components/allowedAppSelect/index.tsx b/apps/civicsignalblog/src/payload/components/allowedAppSelect/index.tsx index a14502595..821ac4433 100644 --- a/apps/civicsignalblog/src/payload/components/allowedAppSelect/index.tsx +++ b/apps/civicsignalblog/src/payload/components/allowedAppSelect/index.tsx @@ -6,7 +6,7 @@ import applications from "#civicsignalblog/payload/lib/data/common/applications" function CustomSelectComponent({ path, label }) { const { user } = useAuth(); - const { value, setValue } = useField({ path }); + const { value, setValue } = useField({ path }); const [options, setOptions] = useState([]); useEffect(() => { @@ -32,7 +32,7 @@ function CustomSelectComponent({ path, label }) { path={path} name={path} options={options} - value={value} + value={String(value ?? "")} onChange={(e) => setValue(e.value)} />