From 84170f03ba530eccfe6f6f6316a5fd6c7eecadac Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Fri, 20 Jan 2023 12:50:13 +0100 Subject: [PATCH 1/2] fix --- .../components/connectorBuilder/Builder/BuilderField.tsx | 2 +- .../src/components/connectorBuilder/Builder/InputsForm.tsx | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/airbyte-webapp/src/components/connectorBuilder/Builder/BuilderField.tsx b/airbyte-webapp/src/components/connectorBuilder/Builder/BuilderField.tsx index 0e2a0f863ac5..8b9b1a15f4ed 100644 --- a/airbyte-webapp/src/components/connectorBuilder/Builder/BuilderField.tsx +++ b/airbyte-webapp/src/components/connectorBuilder/Builder/BuilderField.tsx @@ -149,7 +149,7 @@ const InnerBuilderField: React.FC> = export const BuilderField: React.FC = (props) => { return ( - + {({ field, form, meta }: FastFieldProps) => ( )} diff --git a/airbyte-webapp/src/components/connectorBuilder/Builder/InputsForm.tsx b/airbyte-webapp/src/components/connectorBuilder/Builder/InputsForm.tsx index 33f0e94a1ca6..2ab7c5415aa7 100644 --- a/airbyte-webapp/src/components/connectorBuilder/Builder/InputsForm.tsx +++ b/airbyte-webapp/src/components/connectorBuilder/Builder/InputsForm.tsx @@ -242,13 +242,6 @@ const InputModal = ({ label={formatMessage({ id: "connectorBuilder.inputModal.default" })} /> )} - ) : ( From b240e7c397a83d4fec933d3feb76d0c4b4d7b42c Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Fri, 20 Jan 2023 12:51:20 +0100 Subject: [PATCH 2/2] fix --- .../src/components/connectorBuilder/Builder/BuilderField.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/airbyte-webapp/src/components/connectorBuilder/Builder/BuilderField.tsx b/airbyte-webapp/src/components/connectorBuilder/Builder/BuilderField.tsx index 8b9b1a15f4ed..497523e3a9b0 100644 --- a/airbyte-webapp/src/components/connectorBuilder/Builder/BuilderField.tsx +++ b/airbyte-webapp/src/components/connectorBuilder/Builder/BuilderField.tsx @@ -149,6 +149,7 @@ const InnerBuilderField: React.FC> = export const BuilderField: React.FC = (props) => { return ( + // The key is set to enforce a re-render of the component if the type change, otherwise changes in props might not be reflected correctly {({ field, form, meta }: FastFieldProps) => (