Fix root group name check (#12660) (#12736)

This commit is contained in:
Charles Gagnon
2020-10-05 12:51:23 -07:00
committed by GitHub
parent 6c85cf2bdd
commit c801d46814

View File

@@ -37,7 +37,7 @@ export class ConnectionProfileGroup extends Disposable implements IConnectionPro
) {
super();
this.parentId = parent ? parent.id : undefined;
if (this.name === ConnectionProfileGroup.RootGroupName) {
if (ConnectionProfileGroup.isRoot(this.name)) {
this.name = '';
this.isRoot = true;
}