Skip to content

Commit

Permalink
fix: quick fix for #14606 pulled in from #14623
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed May 31, 2024
1 parent a876c12 commit e370f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -4146,7 +4146,7 @@ function applyVirtuals(self, json, options, toObjectOptions) {
assignPath = path.substring(options.path.length + 1);
}
if (assignPath.indexOf('.') === -1 && assignPath === path) {
v = clone(self.get(path, { noDottedPath: true }), options);
v = clone(self.get(path, null, { noDottedPath: true }), options);
if (v === void 0) {
continue;
}
Expand Down

0 comments on commit e370f72

Please sign in to comment.