diff --git a/src/core/components/layout-utils.jsx b/src/core/components/layout-utils.jsx index d1adfeb1..1601681f 100644 --- a/src/core/components/layout-utils.jsx +++ b/src/core/components/layout-utils.jsx @@ -183,7 +183,7 @@ export class Select extends React.Component { { allowEmptyValue ? : null } { allowedValues.map(function (item, key) { - return + return }) } diff --git a/src/core/json-schema-components.js b/src/core/json-schema-components.js index e8bf1e44..07fcada2 100644 --- a/src/core/json-schema-components.js +++ b/src/core/json-schema-components.js @@ -36,7 +36,7 @@ export class JsonSchemaForm extends Component { let { type, format="" } = schema - let Comp = getComponent(`JsonSchema_${type}_${format}`) || getComponent(`JsonSchema_${type}`) || getComponent("JsonSchema_string") + let Comp = (format ? getComponent(`JsonSchema_${type}_${format}`) : getComponent(`JsonSchema_${type}`)) || getComponent("JsonSchema_string") return } @@ -68,19 +68,19 @@ export class JsonSchema_string extends Component { const isDisabled = schema["in"] === "formData" && !("FormData" in window) const Input = getComponent("Input") if (schema["type"] === "file") { - return () } else { - return () } } @@ -189,8 +189,8 @@ export class JsonSchema_boolean extends Component { return (