mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-28 18:54:09 +00:00
make all fields optional but nonnullable
This commit is contained in:
@@ -35,11 +35,6 @@ const mockJobDetail = {
|
||||
id: 'test-prompt-id',
|
||||
status: 'completed' as const,
|
||||
create_time: Date.now(),
|
||||
execution_start_time: null,
|
||||
execution_end_time: null,
|
||||
preview_output: null,
|
||||
outputs_count: null,
|
||||
workflow_id: null,
|
||||
workflow: {
|
||||
extra_data: {
|
||||
extra_pnginfo: {
|
||||
@@ -58,11 +53,6 @@ function createHistoryJob(id: string): JobListItem {
|
||||
id,
|
||||
status: 'completed',
|
||||
create_time: now,
|
||||
execution_start_time: null,
|
||||
execution_end_time: null,
|
||||
preview_output: null,
|
||||
outputs_count: null,
|
||||
workflow_id: null,
|
||||
priority: now
|
||||
}
|
||||
}
|
||||
@@ -73,11 +63,6 @@ function createRunningJob(id: string): JobListItem {
|
||||
id,
|
||||
status: 'in_progress',
|
||||
create_time: now,
|
||||
execution_start_time: null,
|
||||
execution_end_time: null,
|
||||
preview_output: null,
|
||||
outputs_count: null,
|
||||
workflow_id: null,
|
||||
priority: now
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user