mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 22:27:48 +00:00
fix: review comments
This commit is contained in:
-1
@@ -79,7 +79,6 @@ export const ChefSyncFields = () => {
|
|||||||
onChange={(option) => {
|
onChange={(option) => {
|
||||||
const selectedDataBagItem = option as SingleValue<TChefDataBagItem>;
|
const selectedDataBagItem = option as SingleValue<TChefDataBagItem>;
|
||||||
onChange(selectedDataBagItem?.name ?? "");
|
onChange(selectedDataBagItem?.name ?? "");
|
||||||
setValue("destinationConfig.dataBagItemName", selectedDataBagItem?.name ?? "");
|
|
||||||
}}
|
}}
|
||||||
options={dataBagItems}
|
options={dataBagItems}
|
||||||
placeholder="Select a data bag item..."
|
placeholder="Select a data bag item..."
|
||||||
|
|||||||
-2
@@ -60,8 +60,6 @@ export const ChefConnectionForm = ({ appConnection, onSubmit }: Props) => {
|
|||||||
formState: { isSubmitting, isDirty }
|
formState: { isSubmitting, isDirty }
|
||||||
} = form;
|
} = form;
|
||||||
|
|
||||||
console.log("form", form.formState.errors, form.getValues());
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<FormProvider {...form}>
|
<FormProvider {...form}>
|
||||||
<form onSubmit={handleSubmit(onSubmit)}>
|
<form onSubmit={handleSubmit(onSubmit)}>
|
||||||
|
|||||||
Reference in New Issue
Block a user