Skip to content

Commit b285e11

Browse files
author
bietkul
committed
Build Error Fixes
1 parent 255bbaa commit b285e11

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/FormGenerator.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ import configureControl from './configureControl'
1111
const FIELD_CONFIG_STRING = '$field_'
1212

1313
export default class FormGenerator extends React.Component {
14-
// Intiate the form property
15-
form = null
14+
constructor(props) {
15+
super(props)
16+
// Intiate the form property
17+
this.form = null
18+
}
1619
shouldComponentUpdate(nextProps) {
1720
// Only Re-renders for changes in field config
1821
if (nextProps.fieldConfig !== this.props.fieldConfig) {

0 commit comments

Comments
 (0)