diff --git a/src/Common/CosmosClient.ts b/src/Common/CosmosClient.ts index 102df4ea6..37d43c44a 100644 --- a/src/Common/CosmosClient.ts +++ b/src/Common/CosmosClient.ts @@ -163,7 +163,7 @@ let _client: Cosmos.CosmosClient; export function client(): Cosmos.CosmosClient { console.log(`Client Call`); - console.log(`Client Call: userContext.hasDataPlaneRbacSettingChanged: ${userContext.hasDataPlaneRbacSettingChanged}`); + console.log(`Client Call: userContext.refreshCosmosClient: ${userContext.refreshCosmosClient}`); if (_client) { if (!userContext.refreshCosmosClient) { return _client; diff --git a/src/Explorer/Panes/SettingsPane/SettingsPane.tsx b/src/Explorer/Panes/SettingsPane/SettingsPane.tsx index bdf45ff75..3c5537ddc 100644 --- a/src/Explorer/Panes/SettingsPane/SettingsPane.tsx +++ b/src/Explorer/Panes/SettingsPane/SettingsPane.tsx @@ -314,7 +314,7 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({ // TODO: Check if region selection has been updated. Update database account in user context accordingly. updateUserContext({ selectedRegionalEndpoint: regionOptions.find((option) => option.key === selectedRegion)?.data?.endpoint, - hasCosmosClientRegionSettingChanged: true, + refreshCosmosClient: true, }); // TODO: If Global selected, then clear out region selection, but keep change variable enabled. console.log(