From 4bb77e5c16de33010efe4c1fd3b2cf5422859386 Mon Sep 17 00:00:00 2001 From: Oscar Reyes Date: Fri, 16 Jun 2023 08:53:38 -0600 Subject: [PATCH] fix(frontend): adding default value for data store connection types (#2742) --- .../forms/AzureAppInsights/AzureAppInsights.tsx | 4 ++-- .../Settings/DataStorePlugin/forms/BaseClient/BaseClient.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/components/Settings/DataStorePlugin/forms/AzureAppInsights/AzureAppInsights.tsx b/web/src/components/Settings/DataStorePlugin/forms/AzureAppInsights/AzureAppInsights.tsx index dabb670c8a..d1fec24f6a 100644 --- a/web/src/components/Settings/DataStorePlugin/forms/AzureAppInsights/AzureAppInsights.tsx +++ b/web/src/components/Settings/DataStorePlugin/forms/AzureAppInsights/AzureAppInsights.tsx @@ -8,7 +8,7 @@ import DataStoreDocsBanner from '../../../DataStoreDocsBanner/DataStoreDocsBanne const AzureAppInsights = () => { const baseName = ['dataStore', SupportedDataStores.AzureAppInsights]; const form = Form.useFormInstance(); - const connectionType = Form.useWatch([...baseName, 'connectionType'], form); + const connectionType = Form.useWatch([...baseName, 'connectionType'], form) || ConnectionTypes.Direct; const useAzureActiveDirectoryAuth = Form.useWatch([...baseName, 'useAzureActiveDirectoryAuth'], form); return ( @@ -17,7 +17,7 @@ const AzureAppInsights = () => { Connection type: - + Direct Connection Open Telemetry Collector diff --git a/web/src/components/Settings/DataStorePlugin/forms/BaseClient/BaseClient.tsx b/web/src/components/Settings/DataStorePlugin/forms/BaseClient/BaseClient.tsx index 1708ca3f12..cc522cd010 100644 --- a/web/src/components/Settings/DataStorePlugin/forms/BaseClient/BaseClient.tsx +++ b/web/src/components/Settings/DataStorePlugin/forms/BaseClient/BaseClient.tsx @@ -21,7 +21,7 @@ const BaseClient = () => { Connection type: - + gRPC Http