We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64dcefd commit 063de9cCopy full SHA for 063de9c
packages/components/src/__builtins__/dayjs.ts
@@ -12,11 +12,15 @@ export function dayjsable(
12
if (Array.isArray(value)) {
13
return value.map((val) => {
14
const date = dayjs(val, format)
15
- return date.isValid() ? date : val
+ if (date.isValid()) return date
16
+ const _date = dayjs(val)
17
+ return _date.isValid() ? _date : val
18
})
19
} else {
20
const date = dayjs(value, format)
- return date.isValid() ? date : value
21
22
+ const _date = dayjs(value)
23
+ return _date.isValid() ? _date : value
24
}
25
26
0 commit comments