Skip to content

Commit 3a7b578

Browse files
carlinmackslint
authored andcommitted
fix: pass severityChecks to CustomFields
1 parent 6a378a1 commit 3a7b578

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/forms/widgets/custom_fields/CustomFields.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class CustomFields extends Component {
9696

9797
render() {
9898
const { sections, discoverFieldsSections } = this.state;
99-
const { templateLoaders, record } = this.props;
99+
const { templateLoaders, record, severityChecks } = this.props;
100100

101101
return (
102102
<>
@@ -116,6 +116,7 @@ export class CustomFields extends Component {
116116
<Element
117117
key={`section-${sectionName}`}
118118
includesPaths={paths}
119+
severityChecks={severityChecks}
119120
label={sectionName}
120121
active={active}
121122
id={sectionId}
@@ -156,9 +157,11 @@ CustomFields.propTypes = {
156157
templateLoaders: PropTypes.array.isRequired,
157158
fieldPathPrefix: PropTypes.string.isRequired,
158159
includesPaths: PropTypes.func,
160+
severityChecks: PropTypes.object,
159161
record: PropTypes.object.isRequired,
160162
};
161163

162164
CustomFields.defaultProps = {
163165
includesPaths: (fields) => fields.map((field) => field.key),
166+
severityChecks: null,
164167
};

0 commit comments

Comments
 (0)