diff --git a/plugins/agent/src/workflow.rs b/plugins/agent/src/workflow.rs index dff495e..5e10548 100644 --- a/plugins/agent/src/workflow.rs +++ b/plugins/agent/src/workflow.rs @@ -118,7 +118,7 @@ fn validate_steps(args: &Value) -> Result { } for key in routes.keys() { if !s["options"].as_array().is_some_and(|opts| - opts.iter().any(|x|x==key.as_str())) { + opts.iter().any(|x|x.as_str()==Some(key.as_str()))) { return Err("route label is not a declared choice".into()); } }