From 581d2b629a57ad9d65585fd13b0b5da4c3e6f572 Mon Sep 17 00:00:00 2001 From: David Buezas Date: Sun, 5 Feb 2023 09:57:46 +0100 Subject: [PATCH] replace the value variable with parent[key] on the way back of the traversal (#239) --- src/parse-config/parse-config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parse-config/parse-config.ts b/src/parse-config/parse-config.ts index a7e2c01..4c871c1 100644 --- a/src/parse-config/parse-config.ts +++ b/src/parse-config/parse-config.ts @@ -158,6 +158,7 @@ class ConfigParser { } // we're now on the way back of traversal, `value` is fully evaluated (not a function) + value = parent[key]; if (path.match(/^entities\.\d+\.filters\.\d+$/)) { this.evalFilter({ parent, path, key, value });