From be35b97652a239be8836dabf43dab548b8543486 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 6 Oct 2021 08:50:26 +0200 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 6a7540c49f..62685ea155 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -290,8 +290,8 @@ module.exports = (_ => { if (!nodeOrObj || !valuePath) return null; let obj = Node.prototype.isPrototypeOf(nodeOrObj) ? BDFDB.ReactUtils.getInstance(nodeOrObj) : nodeOrObj; if (!BDFDB.ObjectUtils.is(obj)) return null; - let found = obj, values = valuePath.split(".").filter(n => n); - for (value of values) { + let found = obj; + for (const value of valuePath.split(".").filter(n => n)) { if (!found) return null; found = found[value]; }