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 99276ae276
commit 96281697fc
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ let _client: Cosmos.CosmosClient;
export function client(): Cosmos.CosmosClient { export function client(): Cosmos.CosmosClient {
console.log(`Client Call`); console.log(`Client Call`);
console.log(`Client Call: userContext.hasDataPlaneRbacSettingChanged: ${userContext.hasDataPlaneRbacSettingChanged}`); console.log(`Client Call: userContext.refreshCosmosClient: ${userContext.refreshCosmosClient}`);
if (_client) { if (_client) {
if (!userContext.refreshCosmosClient) { if (!userContext.refreshCosmosClient) {
return _client; return _client;

View File

@ -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. // TODO: Check if region selection has been updated. Update database account in user context accordingly.
updateUserContext({ updateUserContext({
selectedRegionalEndpoint: regionOptions.find((option) => option.key === selectedRegion)?.data?.endpoint, 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. // TODO: If Global selected, then clear out region selection, but keep change variable enabled.
console.log( console.log(