aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/js/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/utils.js b/src/js/utils.js
index ea2dc72d..b6ba0941 100644
--- a/src/js/utils.js
+++ b/src/js/utils.js
@@ -730,7 +730,7 @@ const utils = {
// Get a nested value in an object
getDeep(object, path) {
- return path.split('.').reduce((obj, key) => (obj && obj[key]) || undefined, object);
+ return path.split('.').reduce((obj, key) => obj && obj[key], object);
},
// Get the closest value in an array