X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/36ab91214cbf5d196f825c666e7018eb9122e5c6..HEAD:/src/views/run-process-panel/inputs/string-array-input.tsx diff --git a/src/views/run-process-panel/inputs/string-array-input.tsx b/src/views/run-process-panel/inputs/string-array-input.tsx index 39dbe0af..8955009a 100644 --- a/src/views/run-process-panel/inputs/string-array-input.tsx +++ b/src/views/run-process-panel/inputs/string-array-input.tsx @@ -2,12 +2,12 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from 'react'; -import { isRequiredInput, StringArrayCommandInputParameter } from '~/models/workflow'; +import React from 'react'; +import { isRequiredInput, StringArrayCommandInputParameter } from 'models/workflow'; import { Field } from 'redux-form'; -import { ERROR_MESSAGE } from '~/validators/require'; -import { GenericInputProps, GenericInput } from '~/views/run-process-panel/inputs/generic-input'; -import { ChipsInput } from '~/components/chips-input/chips-input'; +import { ERROR_MESSAGE } from 'validators/require'; +import { GenericInputProps, GenericInput } from 'views/run-process-panel/inputs/generic-input'; +import { ChipsInput } from 'components/chips-input/chips-input'; import { identity } from 'lodash'; import { createSelector } from 'reselect'; import { Input } from '@material-ui/core'; @@ -31,7 +31,7 @@ const validationSelector = createSelector( ); const required = (value: string[] = []) => - value.length > 0 + value && value.length > 0 ? undefined : ERROR_MESSAGE;