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 }