Skip to content

Commit

Permalink
add to form
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen committed May 13, 2024
1 parent 08220dc commit 61fbb00
Showing 1 changed file with 17 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}}
/>
Expand Down

0 comments on commit 61fbb00

Please sign in to comment.