fix(plugin-workflow): fix schedule on field null value (#1442)
This commit is contained in:
parent
7fe70da4fa
commit
71dcabec25
@ -124,6 +124,9 @@ function getOnTimestampWithOffset(on, now: Date) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getDataOptionTime(data, on, dir = 1) {
|
function getDataOptionTime(data, on, dir = 1) {
|
||||||
|
if (!on) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
switch (typeof on) {
|
switch (typeof on) {
|
||||||
case 'string':
|
case 'string':
|
||||||
const time = parseDateWithoutMs(on);
|
const time = parseDateWithoutMs(on);
|
||||||
|
Loading…
Reference in New Issue
Block a user