Skip to content

Commit

Permalink
Fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jennasalau committed Apr 19, 2019
1 parent 9e8e897 commit 70d2342
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/components/FormBuilderField.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ export default class FormBuilderField extends React.Component {
onTriggerCallback: PropTypes.func.isRequired,

pathsToTreeMap: PropTypes.object.isRequired,

runAction: PropTypes.func.isRequired,

context: PropTypes.object.isRequired,
};

static defaultProps = {
Expand Down Expand Up @@ -101,7 +105,7 @@ export default class FormBuilderField extends React.Component {
// If we are safe to remove the value: set the field as untouched and reset back
// to the fields defaultValue.
if (!isPathShown) {
let defaultValue
let defaultValue;

if (typeof this.props.config.defaultValue !== 'undefined') {
defaultValue = this.props.config.defaultValue;
Expand Down Expand Up @@ -169,7 +173,7 @@ export default class FormBuilderField extends React.Component {
fieldExternalErrors = [fieldExternalErrors];
}

const dependsOnOtherFields = this.props.registeredComponents[this.props.config.type].dependsOnOtherFields
const dependsOnOtherFields = this.props.registeredComponents[this.props.config.type].dependsOnOtherFields;

const shouldOptimise = !dependsOnOtherFields && (!config || !config.fields || !config.fields.length);

Expand Down
2 changes: 1 addition & 1 deletion src/renderTextNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const renderTextNode = (node, WrappingTag = 'div', context = {}) => {
let content;

if (node && node.content) {
content = node.content
content = node.content;
}

if (node && node.contentPath) {
Expand Down

0 comments on commit 70d2342

Please sign in to comment.