Skip to content

Commit

Permalink
fix create workflow values for integer=0
Browse files Browse the repository at this point in the history
  • Loading branch information
vinicvaz committed Jun 21, 2024
1 parent c653583 commit ae78a80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ const WorkflowsEditorProvider: FC<{ children?: React.ReactNode }> = ({
return acc;
}

if (!value.fromUpstream && !value.value) {
if (!value.fromUpstream && typeof value.value === 'string' && !value.value) {
return acc;
}
if (
Expand Down
4 changes: 2 additions & 2 deletions rest/services/workflow_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ def create_workflow(
new_workflow = Workflow(
name=body.workflow.name,
uuid_name=workflow_id,
created_at=datetime.utcnow(),
created_at=datetime.now(),
schema=body.forageSchema,
ui_schema=body.ui_schema.model_dump(),
created_by=auth_context.user_id,
last_changed_at=datetime.utcnow(),
last_changed_at=datetime.now(),
start_date=body.workflow.start_date,
end_date=body.workflow.end_date,
schedule=body.workflow.schedule,
Expand Down

0 comments on commit ae78a80

Please sign in to comment.