From 81f8a591e4a19c3ada1e89fade91f31aa7c31180 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 6 Dec 2022 11:28:57 +0800 Subject: [PATCH] fix(nc-gui): parse string date if date is not null --- packages/nc-gui/components/template/Editor.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/template/Editor.vue b/packages/nc-gui/components/template/Editor.vue index 21d92a40a4..770109fd9a 100644 --- a/packages/nc-gui/components/template/Editor.vue +++ b/packages/nc-gui/components/template/Editor.vue @@ -431,7 +431,9 @@ async function importTemplate() { input = null } } else if (v.uidt === UITypes.Date) { - input = parseStringDate(input, v.meta.date_format) + if (input) { + input = parseStringDate(input, v.meta.date_format) + } } res[col.destCn] = input }