Skip to content

Commit d030659

Browse files
author
Frank Pagan
committed
fix: getValueFromObject returns empty strings
1 parent 7746815 commit d030659

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@
105105

106106
for (let i = 0; i < subpath.length; i++) {
107107
jsonData = jsonData[subpath[i]];
108-
if (!jsonData) return;
108+
if (!jsonData)
109+
return jsonData;
109110
}
110111
return jsonData;
111112
}catch(error){

0 commit comments

Comments
 (0)