From 52208a383d788bd0d743de74c58a376ccd0ca1e1 Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Wed, 10 Aug 2022 08:25:30 -0500 Subject: [PATCH] Update to show empty string for null datetime --- src/qqq/utils/QValueUtils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qqq/utils/QValueUtils.ts b/src/qqq/utils/QValueUtils.ts index 94aa07e..00bdb87 100644 --- a/src/qqq/utils/QValueUtils.ts +++ b/src/qqq/utils/QValueUtils.ts @@ -38,6 +38,10 @@ class QValueUtils if (field.type === QFieldType.DATE_TIME) { + if (!rawValue) + { + return (""); + } const date = new Date(rawValue); // @ts-ignore return (`${date.toString("yyyy-MM-dd hh:mm:ss")} ${date.getHours() < 12 ? "AM" : "PM"} ${date.getTimezone()}`);