fix(plugin-workflow): fix schedule on field null value (#1442)

This commit is contained in:
Junyi 2023-02-09 16:24:51 +08:00 committed by GitHub
parent 7fe70da4fa
commit 71dcabec25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);