Skip to content

Commit

Permalink
correctly extracting profile location
Browse files Browse the repository at this point in the history
Signed-off-by: Chinmay Das <[email protected]>
  • Loading branch information
chinmdas authored Dec 18, 2024
1 parent 0b2dad1 commit 89c64c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vsce/src/trees/CICSTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class CICSTree implements TreeDataProvider<CICSSessionTree> {
const filePath =
currentProfile === null
? configInstance.getTeamConfig().opts.homeDir + "/zowe.config.json"
: (currentProfile?.profLoc.osLoc?.[0] ?? "");
: (currentProfile.profLoc.osLoc?.[0]);
await openConfigFile(filePath);
} else {
let profileToLoad;
Expand Down Expand Up @@ -569,7 +569,7 @@ export class CICSTree implements TreeDataProvider<CICSSessionTree> {
placeHolder: "Create a New Team Configuration File",
});
if (response) {
const filePath = profile?.profLoc.osLoc?.[0] ?? "";
const filePath = profile.profLoc.osLoc?.[0];
await openConfigFile(filePath);
}
}
Expand Down

0 comments on commit 89c64c4

Please sign in to comment.