fix(agent): compare branch labels using explicit text conversion
This commit is contained in:
1 parent
8a66f803cb
commit
92c3f80055
1 file changed
+1
-1
@@ -118,7 +118,7 @@ fn validate_steps(args: &Value) -> Result<Value, String> {
|
||||
}
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user