Fix no previous enqueue entry's UI display

This commit is contained in:
Ken Hibino
2020-12-04 06:48:58 -08:00
parent c6471e8c04
commit 96eec9ce11
3 changed files with 32 additions and 21 deletions

View File

@@ -108,7 +108,9 @@ export interface SchedulerEntry {
task_payload: { [key: string]: any };
options: string[];
next_enqueue_at: string;
prev_enqueue_at: string;
// prev_enqueue_at will be omitted
// if there were no previous enqueue events.
prev_enqueue_at?: string;
}
export interface PaginationOptions extends Record<string, number | undefined> {