@microsoft/mgt-element
Advanced tools
Comparing version 2.2.0-next.file-picker.bcc3b0d to 2.2.0-preview.079643a
@@ -224,8 +224,11 @@ /** | ||
const provider = Providers.globalProvider; | ||
if (provider.state == ProviderState.SignedOut) { | ||
if (!provider) { | ||
return Promise.resolve(); | ||
} | ||
if (provider.state === ProviderState.SignedOut) { | ||
// Signed out, clear the component state | ||
this.clearState(); | ||
return Promise.resolve(); | ||
return; | ||
} | ||
else if (provider.state == ProviderState.Loading) { | ||
else if (provider.state === ProviderState.Loading) { | ||
// The provider state is indeterminate. Do nothing. | ||
@@ -232,0 +235,0 @@ return Promise.resolve(); |
{ | ||
"name": "@microsoft/mgt-element", | ||
"version": "2.2.0-next.file-picker.bcc3b0d", | ||
"version": "2.2.0-preview.079643a", | ||
"description": "Microsoft Graph Toolkit base classes", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/microsoftgraph/microsoft-graph-toolkit", |
@@ -231,7 +231,11 @@ /** | ||
if (provider.state == ProviderState.SignedOut) { | ||
if (!provider) { | ||
return Promise.resolve(); | ||
} | ||
if (provider.state === ProviderState.SignedOut) { | ||
// Signed out, clear the component state | ||
this.clearState(); | ||
return Promise.resolve(); | ||
} else if (provider.state == ProviderState.Loading) { | ||
return; | ||
} else if (provider.state === ProviderState.Loading) { | ||
// The provider state is indeterminate. Do nothing. | ||
@@ -238,0 +242,0 @@ return Promise.resolve(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
787691
6900