parent
0d27e814eb
commit
0642999457
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ export class SwitchTerminalInstanceAction extends Action {
|
|||
}
|
||||
|
||||
public run(item?: string): TPromise<any> {
|
||||
if (!item) {
|
||||
if (!item || !item.split) {
|
||||
return TPromise.as(null);
|
||||
}
|
||||
const selectedTerminalIndex = parseInt(item.split(':')[0], 10) - 1;
|
||||
|
|
Loading…
Reference in a new issue