mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-03-04 00:48:07 +00:00
Rebase on client refresh bug fix.
This commit is contained in:
parent
c7799dbe8b
commit
23721140c3
@ -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;
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user