Skip to content

Commit 7d29982

Browse files
authored
Revert: toMarkingFormat - Cannot convert undefined value to object (#2409) (#2425)
1 parent d06080c commit 7d29982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function xdateToData(date: XDate | string) {
2020
}
2121

2222
export function parseDate(d?: any) {
23-
if (d === undefined) {
23+
if (!d) {
2424
return;
2525
} else if (d.timestamp) {
2626
// conventional data timestamp

0 commit comments

Comments
 (0)