fix/invaild dateFormat (#1871)
Co-authored-by: Felix Hoi <felixhoi@ssm.gov.mo>
This commit is contained in:
parent
d09e998ae7
commit
0634f2ca9e
|
|
@ -298,7 +298,7 @@ export function formatCell(text: string, format: CellFormat, record: Recordable,
|
|||
try {
|
||||
// date type
|
||||
const DATE_FORMAT_PREFIX = 'date|';
|
||||
if (isString(format) && format.startsWith(DATE_FORMAT_PREFIX)) {
|
||||
if (isString(format) && format.startsWith(DATE_FORMAT_PREFIX) && text) {
|
||||
const dateFormat = format.replace(DATE_FORMAT_PREFIX, '');
|
||||
|
||||
if (!dateFormat) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue