Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const problemGroups = schema._validation
const groupsWithErrors = problemGroups.filter(group =>
group.problems.some(problem => problem.severity === 'error')
)
if (groupsWithErrors.length > 0) {
return
}
const templateErrors = getTemplateErrors()
if (templateErrors.length > 0) {
return
}
return this.props.children()
}
}