Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Pass options to clone instead of get in applyVirtuals.
  • Loading branch information
andrews05 committed May 20, 2024
commit 5291007ed088bda63ec4d7b28e2ac91b5c07b96e
2 changes: 1 addition & 1 deletion lib/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -4128,7 +4128,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, options ? { ...options, noDottedPath: true } : { noDottedPath: true }));
v = clone(self.get(path, { noDottedPath: true }), options);
if (v === void 0) {
continue;
}
Expand Down