Skip to content

Commit 581d2b6

Browse files
authored
replace the value variable with parent[key] on the way back of the traversal (#239)
1 parent f3b3df1 commit 581d2b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parse-config/parse-config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ class ConfigParser {
158158
}
159159

160160
// we're now on the way back of traversal, `value` is fully evaluated (not a function)
161+
value = parent[key];
161162

162163
if (path.match(/^entities\.\d+\.filters\.\d+$/)) {
163164
this.evalFilter({ parent, path, key, value });

0 commit comments

Comments
 (0)