diff --git a/packages/zowe-explorer-api/src/profiles/ProfilesCache.ts b/packages/zowe-explorer-api/src/profiles/ProfilesCache.ts index 83289c1b44..fc960e5080 100644 --- a/packages/zowe-explorer-api/src/profiles/ProfilesCache.ts +++ b/packages/zowe-explorer-api/src/profiles/ProfilesCache.ts @@ -389,7 +389,7 @@ export class ProfilesCache { return convertResult; } - public static getProfileSessionWithVscProxy(session: imperative.Session): imperative.Session { + public static getProfileSessionWithVscProxy(session: imperative.Session): imperative.Session | undefined { if (!session) { return; }