From 039fa86722aed6f012a3028496e9265448ddff4b Mon Sep 17 00:00:00 2001 From: mathis-m Date: Sat, 27 Feb 2021 05:58:29 +0100 Subject: [PATCH] fix: preserve multipart file part position in requestData when providing type string format binary aka file position is not preserved, because it is not registered on component mount like all others do. So the state is later on corrupted, because when the file is set and so a new property will be added to requestData Map in state. This results in beeing the last property. since all other properties' components are registering their value on component mount, the oder is preserved for those. Signed-off-by: mathis-m --- src/core/json-schema-components.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/json-schema-components.jsx b/src/core/json-schema-components.jsx index 47a1981099e..e0e113d78de 100644 --- a/src/core/json-schema-components.jsx +++ b/src/core/json-schema-components.jsx @@ -40,6 +40,8 @@ export class JsonSchemaForm extends Component { const { dispatchInitialValue, value, onChange } = this.props if(dispatchInitialValue) { onChange(value) + } else if(dispatchInitialValue === false) { + onChange("") } }