Skip to content

Commit 1bd130a

Browse files
committed
fix: undefined old session
1 parent fa69720 commit 1bd130a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

templates/cli/lib/config.js.twig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,10 @@ class Global extends Config {
417417
return this.get(Global.PREFERENCE_CURRENT);
418418
}
419419

420-
setCurrentSession(endpoint) {
421-
this.set(Global.PREFERENCE_CURRENT, endpoint);
420+
setCurrentSession(session) {
421+
if(session !== undefined) {
422+
this.set(Global.PREFERENCE_CURRENT, session);
423+
}
422424
}
423425

424426
getSessionIds() {

0 commit comments

Comments
 (0)