diff --git a/src/utils/index.js b/src/utils/index.js index 3a2c425..4326ef7 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -55,6 +55,9 @@ export function formatTime (time, type = '24', a = 'a') { } export function formatDate (date, format) { + if (!date) { + return '' + } try { return fecha.format(new Date(date), format) } catch (e) {