Skip to content

Commit

Permalink
[schema] Fix bug with map and default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Jan 30, 2018
1 parent 75cad15 commit c29997b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/schema/src/sanity/groupProblems.js
Expand Up @@ -63,6 +63,6 @@ export function getTypeProblems(type, path = []) {

export default function groupProblems(types) {
return flatten(types
.map(getTypeProblems))
.map(type => getTypeProblems(type)))
.filter(type => type.problems.length > 0)
}

0 comments on commit c29997b

Please sign in to comment.