Rebase on client refresh bug fix.

This commit is contained in:
Craig Boger (from Dev Box) 2025-01-17 16:19:47 -08:00
parent c7799dbe8b
commit 23721140c3
2 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,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;

View File

@ -310,7 +310,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(