Skip to content

Commit

Permalink
fix(document): allow saving document with nested document array after…
Browse files Browse the repository at this point in the history
… setting `nestedArr.0`

Fix #8689
  • Loading branch information
vkarpov15 committed Mar 23, 2020
1 parent a995b5d commit f650191
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/types/core_array.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ class CoreMongooseArray extends Array {
}
}

if (dirtyPath != null && dirtyPath.endsWith('.$')) {
return this;
}

parent.markModified(dirtyPath, arguments.length > 0 ? elem : parent);
}

Expand Down

0 comments on commit f650191

Please sign in to comment.