summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/vm/eachField.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/script/vm/eachField.lua b/script/vm/eachField.lua
index ce2be968..2620aa41 100644
--- a/script/vm/eachField.lua
+++ b/script/vm/eachField.lua
@@ -31,8 +31,9 @@ local function getFieldsBySource(source, deep, filterKey)
if not cache or cache.deep < deep then
cache = getFields(source, deep, filterKey)
cache.deep = deep
- cache.filterKey = filterKey
- vm.getCache('eachField')[source] = cache
+ if not filterKey then
+ vm.getCache('eachField')[source] = cache
+ end
end
return cache
end