Skip to content

Commit

Permalink
Correcting condition in delete scenario
Browse files Browse the repository at this point in the history
Signed-off-by: Chinmay Das <[email protected]>
  • Loading branch information
chinmdas authored Dec 17, 2024
1 parent a03249b commit 3d4fe7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vsce/src/commands/deleteSessionCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function getDeleteSessionCommand(tree: CICSTree, treeview: TreeView<any>)
}
try {
const configInstance = await ProfileManagement.getConfigInstance();
if (configInstance.usingTeamConfig) {
if (configInstance.getTeamConfig().exists) {
const currentProfile = await ProfileManagement.getProfilesCache().getProfileFromConfig(allSelectedNodes[allSelectedNodes.length - 1].label);
if (currentProfile) {
const filePath = currentProfile.profLoc.osLoc ? currentProfile.profLoc.osLoc[0] : "";
Expand Down

0 comments on commit 3d4fe7d

Please sign in to comment.