diff --git a/src/commands/deployment/testservers/status/status.ts b/src/commands/deployment/testservers/status/status.ts index 9bb200c..a6131a0 100644 --- a/src/commands/deployment/testservers/status/status.ts +++ b/src/commands/deployment/testservers/status/status.ts @@ -73,7 +73,11 @@ module.exports = { }; const ellipsis = (a: string, max: number) => { - return a.length > max ? a.substr(0, max) + '..' : a; + if (a) { + return a.length > max ? a.substr(0, max) + '..' : a; + } else { + return a; + } }; const timeSince = (date: number) => {