From 61fbb001f174553b6eb3c961a9ed72c2f97ee7fc Mon Sep 17 00:00:00 2001 From: Feroze Mohideen Date: Mon, 13 May 2024 18:14:20 -0400 Subject: [PATCH] add to form --- .../forms/SandboxDatastoreForm.tsx | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/dashboard/src/main/home/database-dashboard/forms/SandboxDatastoreForm.tsx b/dashboard/src/main/home/database-dashboard/forms/SandboxDatastoreForm.tsx index 36ae1b1dd3..b802fc9790 100644 --- a/dashboard/src/main/home/database-dashboard/forms/SandboxDatastoreForm.tsx +++ b/dashboard/src/main/home/database-dashboard/forms/SandboxDatastoreForm.tsx @@ -161,14 +161,23 @@ const SandboxDatastoreForm: React.FC = () => { return; } setTemplate(templateMatch); - match(templateMatch).with( - { - name: DATASTORE_TEMPLATE_NEON.name, - }, - () => { - setValue("config.type", "neon"); - } - ); + match(templateMatch) + .with( + { + name: DATASTORE_TEMPLATE_NEON.name, + }, + () => { + setValue("config.type", "neon"); + } + ) + .with( + { + name: DATASTORE_TEMPLATE_UPSTASH.name, + }, + () => { + setValue("config.type", "upstash"); + } + ); setCurrentStep(4); }} />