Skip to content

Commit

Permalink
Merge pull request #274 from Exabyte-io/feature/SOF-7053
Browse files Browse the repository at this point in the history
SOF-7053: UI Schema Handling
  • Loading branch information
timurbazhirov authored Oct 31, 2023
2 parents d8dfefb + 955b182 commit 329e344
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 329e344

Please sign in to comment.