fix: options in enable namespace selection

This commit is contained in:
Oliver Geneser
2025-09-13 14:44:08 +02:00
parent 293160eb55
commit 307916a49a
2 changed files with 6 additions and 8 deletions

View File

@@ -1,7 +1,6 @@
import { SelectGroup } from "@radix-ui/react-select";
import { ToggleVisibilityInput } from "@/components/shared/toggle-visibility-input";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { Checkbox } from "@/components/ui/checkbox";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import {
@@ -81,15 +80,15 @@ export const ShowInternalLibsqlCredentials = ({ libsqlId }: Props) => {
defaultValue={
data?.enableNamespaces
? String(data?.enableNamespaces)
: "False"
: "false"
}
>
<SelectTrigger>
<SelectValue placeholder={"False"} />
<SelectValue placeholder={"false"} />
</SelectTrigger>
<SelectContent>
<SelectGroup>
{["False", "True"].map((node) => (
{["false", "true"].map((node) => (
<SelectItem key={node} value={node}>
{node.charAt(0).toUpperCase() + node.slice(1)}
</SelectItem>

View File

@@ -13,7 +13,6 @@ import {
RedisIcon,
} from "@/components/icons/data-tools-icons";
import { Button } from "@/components/ui/button";
import { Checkbox } from "@/components/ui/checkbox";
import {
Dialog,
DialogContent,
@@ -643,15 +642,15 @@ export const AddDatabase = ({ environmentId, projectName }: Props) => {
field.onChange(Boolean(value))
}
defaultValue={
field.value ? String(field.value) : "False"
field.value ? String(field.value) : "false"
}
>
<SelectTrigger>
<SelectValue placeholder={"False"} />
<SelectValue placeholder={"false"} />
</SelectTrigger>
<SelectContent>
<SelectGroup>
{["False", "True"].map((node) => (
{["false", "true"].map((node) => (
<SelectItem key={node} value={node}>
{node.charAt(0).toUpperCase() +
node.slice(1)}