fix dashboard opening server vs database view (#24546)

This commit is contained in:
Christopher Suh
2023-09-29 14:40:47 -07:00
committed by GitHub
parent cc84a5e709
commit 86d0779c87

View File

@@ -480,6 +480,10 @@ export class ConnectionManagementService extends Disposable implements IConnecti
profile.userName = accounts?.find(a => a.key.accountId === profile.azureAccount)?.displayInfo.displayName profile.userName = accounts?.find(a => a.key.accountId === profile.azureAccount)?.displayInfo.displayName
?? profile.userName; ?? profile.userName;
} }
// This is used to specify whether a connection is server level or database level
if (profile.databaseName !== 'master' || !profile.databaseName) {
profile.options.originalDatabase = profile.databaseName
}
} }
return profile; return profile;
} }