From 0a4c3ee6d630ae84b600143f11c1f4deee35e314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arwid=20Thornstro=CC=88m?= Date: Tue, 17 Jan 2023 09:03:50 +0100 Subject: [PATCH] fixed support for null branch in status --- src/commands/deployment/testservers/status/status.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) => {