Feature #14524
Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski@contractors.roche.com>
commandInput={input}
component={InputComponent}
parse={parse}
- format={value => isNaN(value) ? '' : JSON.stringify(value)}
+ format={format}
validate={[
isRequiredInput(input)
? isInteger
const parse = (value: any) => parseInt(value, 10);
+const format = (value: any) => isNaN(value) ? '' : JSON.stringify(value);
+
const InputComponent = (props: GenericInputProps) =>
<GenericInput
component={Input}