mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
fix cms server deletion from memento (#7062)
This commit is contained in:
committed by
Karl Burtram
parent
a61c86bff5
commit
6a4c9b4108
@@ -126,7 +126,7 @@ export class CmsUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async deleteCmsServer(cmsServerName: string, connection: azdata.connection.Connection): Promise<void> {
|
public async deleteCmsServer(cmsServerName: string, connection: azdata.connection.Connection): Promise<void> {
|
||||||
const servers: ICmsResourceNodeInfo[] = this._memento.get('servers');
|
const servers: ICmsResourceNodeInfo[] = this._memento.get('centralManagementServers');
|
||||||
if (servers) {
|
if (servers) {
|
||||||
const newServers: ICmsResourceNodeInfo[] = servers.filter((cachedServer) => {
|
const newServers: ICmsResourceNodeInfo[] = servers.filter((cachedServer) => {
|
||||||
return cachedServer.name !== cmsServerName;
|
return cachedServer.name !== cmsServerName;
|
||||||
|
|||||||
Reference in New Issue
Block a user