mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-03-06 18:07:11 +00:00
Update cosmos client to fix bug.
Clients continuously generate after changing RBAC setting.
This commit is contained in:
parent
e39dec5dc6
commit
c803b56a7a
@ -162,6 +162,8 @@ enum SDKSupportedCapabilities {
|
||||
let _client: Cosmos.CosmosClient;
|
||||
|
||||
export function client(): Cosmos.CosmosClient {
|
||||
console.log(`Client Call`);
|
||||
console.log(`Client Call: userContext.hasDataPlaneRbacSettingChanged: ${userContext.hasDataPlaneRbacSettingChanged}`);
|
||||
if (_client) {
|
||||
if (!userContext.refreshCosmosClient) {
|
||||
return _client;
|
||||
|
Loading…
x
Reference in New Issue
Block a user