Skip to content

Commit

Permalink
fix dashboard opening server vs database view (#24546)
Browse files Browse the repository at this point in the history
  • Loading branch information
cssuh authored Sep 29, 2023
1 parent cc84a5e commit 86d0779
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
// 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;
}
Expand Down

0 comments on commit 86d0779

Please sign in to comment.