[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-09-06 19:36:11 +00:00
committed by GitHub
parent d0489f6e11
commit 081ba60f6e
3 changed files with 22 additions and 7 deletions

View File

@@ -202,10 +202,14 @@ export const AddCompose = ({ environmentId, projectName }: Props) => {
<Select
onValueChange={field.onChange}
defaultValue={field.value || (!isCloud ? "dokploy" : undefined)}
defaultValue={
field.value || (!isCloud ? "dokploy" : undefined)
}
>
<SelectTrigger>
<SelectValue placeholder={!isCloud ? "Dokploy" : "Select a Server"} />
<SelectValue
placeholder={!isCloud ? "Dokploy" : "Select a Server"}
/>
</SelectTrigger>
<SelectContent>
<SelectGroup>

View File

@@ -59,7 +59,10 @@ export const StepOne = ({ setTemplateInfo, templateInfo }: any) => {
Select the server where you want to deploy (optional)
</Label>
<Select
value={templateInfo.server?.serverId || (!isCloud ? "dokploy" : undefined)}
value={
templateInfo.server?.serverId ||
(!isCloud ? "dokploy" : undefined)
}
onValueChange={(value) => {
if (value === "dokploy") {
setTemplateInfo({
@@ -78,7 +81,9 @@ export const StepOne = ({ setTemplateInfo, templateInfo }: any) => {
}}
>
<SelectTrigger className="w-full">
<SelectValue placeholder={!isCloud ? "Dokploy" : "Select a Server"} />
<SelectValue
placeholder={!isCloud ? "Dokploy" : "Select a Server"}
/>
</SelectTrigger>
<SelectContent>
<SelectGroup>
@@ -97,7 +102,9 @@ export const StepOne = ({ setTemplateInfo, templateInfo }: any) => {
{server.name}
</SelectItem>
))}
<SelectLabel>Servers ({servers?.length + (!isCloud ? 1 : 0)})</SelectLabel>
<SelectLabel>
Servers ({servers?.length + (!isCloud ? 1 : 0)})
</SelectLabel>
</SelectGroup>
</SelectContent>
</Select>

View File

@@ -198,10 +198,14 @@ export const AddCertificate = () => {
<Select
onValueChange={field.onChange}
defaultValue={field.value || (!isCloud ? "dokploy" : undefined)}
defaultValue={
field.value || (!isCloud ? "dokploy" : undefined)
}
>
<SelectTrigger>
<SelectValue placeholder={!isCloud ? "Dokploy" : "Select a Server"} />
<SelectValue
placeholder={!isCloud ? "Dokploy" : "Select a Server"}
/>
</SelectTrigger>
<SelectContent>
<SelectGroup>