mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-01 11:20:14 +08:00
fix: gRPC extra_schedules 为空时序列化报错 not iterable
This commit is contained in:
parent
abad29cbf9
commit
2fe9470ff0
|
|
@ -250,7 +250,7 @@ const normalizeCronData = (data: CronItem | null): CronItem | undefined => {
|
|||
return {
|
||||
...data,
|
||||
sub_id: data.sub_id ?? undefined,
|
||||
extra_schedules: data.extra_schedules ?? undefined,
|
||||
extra_schedules: data.extra_schedules ?? [],
|
||||
pid: data.pid ?? undefined,
|
||||
task_before: data.task_before ?? undefined,
|
||||
task_after: data.task_after ?? undefined,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user