Run npm format

This commit is contained in:
Senthamil Sindhu 2024-07-01 16:09:47 -07:00
parent 3b9261ef76
commit 28d8216b32
1 changed files with 3 additions and 4 deletions

View File

@ -473,7 +473,7 @@ async function configurePortal(): Promise<Explorer> {
}
const { databaseAccount: account, subscriptionId, resourceGroup } = userContext;
if (userContext.apiType === "SQL") {
if (LocalStorageUtility.hasItem(StorageKey.DataPlaneRbacEnabled)) {
const isDataPlaneRbacSetting = LocalStorageUtility.getEntryString(StorageKey.DataPlaneRbacEnabled);
@ -487,11 +487,10 @@ async function configurePortal(): Promise<Explorer> {
updateUserContext({ dataPlaneRbacEnabled });
useDataPlaneRbac.setState({ dataPlaneRbacEnabled: dataPlaneRbacEnabled });
}
else {
} else {
let dataPlaneRbacEnabled;
dataPlaneRbacEnabled = account.properties.disableLocalAuth;
updateUserContext({ dataPlaneRbacEnabled });
useDataPlaneRbac.setState({ dataPlaneRbacEnabled: dataPlaneRbacEnabled });
}