fix(tools): allow operations (currently set) on hash children in execute mode of access module

This commit is contained in:
Tsu-ba-me 2024-03-20 23:27:58 -04:00
parent b5264131c4
commit f506ec4ac8

View File

@ -192,6 +192,16 @@ sub access_chain
if ($is_last_key)
{
# Allow operators on hash children. Mainly used for cleaning up before refreshing children of $anvil->data.
my $op = $chain_args->[0] // "";
if ($op eq "=")
{
my $op_value = $chain_args->[1];
$intermediate->{$key} = $op_value if (defined $op_value);
}
@results = ($intermediate->{$key});
last;