Skip to content

Commit

Permalink
fix: double calling hook with declarative hook field default calling …
Browse files Browse the repository at this point in the history
…hook
  • Loading branch information
robcxyz committed Nov 13, 2022
1 parent e11f91e commit 91f9cd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tackle/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,11 +1109,11 @@ def function_walk(
value = getattr(self, i)
if isinstance(value, dict) and '->' in value:
# For when the default has a hook in it
context = parse_tmp_context(
output = parse_tmp_context(
context=self, element={i: value}, existing_context=existing_context
)
output = context
existing_context.update(output)
input_element[i] = output[i]
else:
existing_context.update({i: getattr(self, i)})

Expand Down

0 comments on commit 91f9cd1

Please sign in to comment.