mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Use the named set-reference projection directly
This commit is contained in:
1 parent
4390d6d6d1
commit
f0940f160f
1 file changed
+1
-1
@@ -113,7 +113,7 @@ pub(super) fn conditional_from(d: &Descriptor) -> Mapped {
|
||||
_ => None,
|
||||
};
|
||||
let mut params = json!({"if": condition, "then": branch("then"), "else": branch("else")});
|
||||
let scopes = ["then", "else"].map(|key| (key, get_ref(d, key).and_then(|reference| super::steps_layer::action_set(reference))));
|
||||
let scopes = ["then", "else"].map(|key| (key, get_ref(d, key).and_then(super::steps_layer::action_set)));
|
||||
let shared = scopes
|
||||
.iter()
|
||||
.filter(|(key, _)| params[*key].is_string())
|
||||
|
||||
Reference in new issue
Block a user