Skip to content

Commit

Permalink
Merge branch 'dev' into feature/SOF-6588
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX authored Nov 1, 2023
2 parents 3e7805a + 329e344 commit 4c5dcce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/esse/schemaUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export function mapObjectDeep(object, mapValue) {
}

const entries = Object.entries(object).map(([key, value]) => {
return [key, mapValue(value) || mapObjectDeep(value, mapValue)];
const res = mapValue(value);

return [key, res === undefined ? mapObjectDeep(value, mapValue) : res];
});

return Object.fromEntries(entries);
Expand Down

0 comments on commit 4c5dcce

Please sign in to comment.