fix: review comments

This commit is contained in:
Piyush Gupta
2025-10-31 00:09:58 +05:30
parent 5a8f684515
commit 3f1607d5aa
2 changed files with 0 additions and 3 deletions
@@ -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..."
@@ -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)}>