From 3f1607d5aa2aa9f6138b07d167191c6acdefeed7 Mon Sep 17 00:00:00 2001 From: Piyush Gupta Date: Fri, 31 Oct 2025 00:09:58 +0530 Subject: [PATCH] fix: review comments --- .../forms/SecretSyncDestinationFields/ChefSyncFields.tsx | 1 - .../components/AppConnectionForm/ChefConnectionForm.tsx | 2 -- 2 files changed, 3 deletions(-) diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/ChefSyncFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/ChefSyncFields.tsx index ad80e75de..363f682fd 100644 --- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/ChefSyncFields.tsx +++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/ChefSyncFields.tsx @@ -79,7 +79,6 @@ export const ChefSyncFields = () => { onChange={(option) => { const selectedDataBagItem = option as SingleValue; onChange(selectedDataBagItem?.name ?? ""); - setValue("destinationConfig.dataBagItemName", selectedDataBagItem?.name ?? ""); }} options={dataBagItems} placeholder="Select a data bag item..." diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/ChefConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/ChefConnectionForm.tsx index d56a7523b..3b97ef9ce 100644 --- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/ChefConnectionForm.tsx +++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/ChefConnectionForm.tsx @@ -60,8 +60,6 @@ export const ChefConnectionForm = ({ appConnection, onSubmit }: Props) => { formState: { isSubmitting, isDirty } } = form; - console.log("form", form.formState.errors, form.getValues()); - return (