mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 08:01:25 +00:00
improve date setValue
This commit is contained in:
@@ -30,7 +30,12 @@
|
||||
|
||||
$componentControl[id] = {
|
||||
setValue(nvalue: string) {
|
||||
value = nvalue
|
||||
if (typeof nvalue === 'string') {
|
||||
value = nvalue?.split('T')?.[0]
|
||||
} else {
|
||||
console.error('Invalid value', nvalue)
|
||||
value = undefined
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user