fix upload file when array items are type=string format=binary (#6040)

This commit is contained in:
Justin Rigon
2020-06-02 02:43:26 +02:00
committed by GitHub
parent 1874c7b401
commit edb932b511

View File

@@ -175,7 +175,7 @@ export class JsonSchema_array extends PureComponent {
const schemaItemsSchema = schema.getIn(["items", "schema"])
let ArrayItemsComponent
let isArrayItemText = false
let isArrayItemFile = schemaItemsType === "file" ? true : false
let isArrayItemFile = (schemaItemsType === "file" || (schemaItemsType === "string" && schemaItemsFormat === "binary")) ? true : false
if (schemaItemsType && schemaItemsFormat) {
ArrayItemsComponent = getComponent(`JsonSchema_${schemaItemsType}_${schemaItemsFormat}`)
} else if (schemaItemsType === "boolean" || schemaItemsType === "array" || schemaItemsType === "object") {