X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4c394b5b01622c72318fc194682077aa304417fa..b04ed9ad5145bf8335cc5749b3d2f0ac166ef60f:/src/views/run-process-panel/inputs/generic-input.tsx diff --git a/src/views/run-process-panel/inputs/generic-input.tsx b/src/views/run-process-panel/inputs/generic-input.tsx index 4ed2654e61..8ca4ec8950 100644 --- a/src/views/run-process-panel/inputs/generic-input.tsx +++ b/src/views/run-process-panel/inputs/generic-input.tsx @@ -2,10 +2,10 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from 'react'; +import React from 'react'; import { WrappedFieldProps } from 'redux-form'; -import { FormGroup, FormLabel, Input, FormHelperText, FormControl } from '@material-ui/core'; -import { GenericCommandInputParameter, getInputLabel, isRequiredInput } from '../../../models/workflow'; +import { FormGroup, FormLabel, FormHelperText } from '@material-ui/core'; +import { GenericCommandInputParameter, getInputLabel, isRequiredInput } from 'models/workflow'; export type GenericInputProps = WrappedFieldProps & { commandInput: GenericCommandInputParameter; @@ -22,9 +22,7 @@ export const GenericInput = ({ component: Component, ...props }: GenericInputCon error={props.meta.touched && !!props.meta.error}> {getInputLabel(props.commandInput)} - - - + { props.meta.touched && props.meta.error