Skip to content

Commit

Permalink
fix: quick fix to avoid checking non-objects for modified paths
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Nov 28, 2022
1 parent 62ad08d commit 23d44e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/helpers/common.js
Expand Up @@ -70,7 +70,9 @@ function flatten(update, path, options, schema) {
*/

function modifiedPaths(update, path, result, recursion = null) {
if (update == null) return result || {};
if (update == null || typeof update !== 'object') {
return;
}

if (recursion == null) {
recursion = {
Expand Down

0 comments on commit 23d44e4

Please sign in to comment.