Merge pull request #4937 from Dokploy/fix/persist-trigger-type-provider-forms

fix(ui): persist trigger type selection in GitHub provider forms

(cherry picked from commit bb73c6e6dd)
This commit is contained in:
Mauricio Siu 2026-07-30 11:23:32 -06:00 committed by Mauricio Siu
parent 7f41b098f9
commit d4e087e128
2 changed files with 12 additions and 4 deletions

View File

@ -438,8 +438,12 @@ export const SaveGithubProvider = ({ applicationId }: Props) => {
</TooltipProvider>
</div>
<Select
onValueChange={field.onChange}
defaultValue={field.value}
onValueChange={(value) => {
if (!value) {
return;
}
field.onChange(value);
}}
value={field.value}
>
<FormControl>

View File

@ -432,8 +432,12 @@ export const SaveGithubProviderCompose = ({ composeId }: Props) => {
</TooltipProvider>
</div>
<Select
onValueChange={field.onChange}
defaultValue={field.value}
onValueChange={(value) => {
if (!value) {
return;
}
field.onChange(value);
}}
value={field.value}
>
<FormControl>