fix: add provider value in edit destination

This commit is contained in:
Mauricio Siu 2024-12-29 15:56:30 -06:00
parent fee5bbc535
commit 2c258c84eb
2 changed files with 3 additions and 0 deletions

View File

@ -92,6 +92,7 @@ export const UpdateDestination = ({ destinationId }: Props) => {
name: data.name,
region: data.region,
secretAccessKey: data.secretAccessKey,
provider: data.provider || "",
});
}
}, [form, form.reset, data]);
@ -105,6 +106,7 @@ export const UpdateDestination = ({ destinationId }: Props) => {
region: data.region,
secretAccessKey: data.secretAccessKey,
destinationId,
provider: data.provider || "",
})
.then(async () => {
toast.success("Destination Updated");

View File

@ -82,6 +82,7 @@ export const apiUpdateDestination = createSchema
endpoint: true,
secretAccessKey: true,
destinationId: true,
provider: true,
})
.required()
.extend({