Commit 83099b9
committed
fix: handle empty payloads in scheduled task test page (#3316)
When parsePacket returns undefined for empty data (e.g. payload=''),
getScheduleTaskRunPayload crashes accessing .timezone on undefined.
Add a null guard that returns a failed SafeParse result so the run is
gracefully skipped by the existing filter(Boolean) logic.1 parent 73ea586 commit 83099b9
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
385 | 390 | | |
386 | 391 | | |
387 | 392 | | |
| |||
0 commit comments