From f0aac0b9747eac597ed42e5169be73cf6fbad410 Mon Sep 17 00:00:00 2001 From: Michal Klobukowski Date: Wed, 28 Nov 2018 13:07:24 +0100 Subject: [PATCH] Restore TAG_VALUE_VALIDATION Feature #14393 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- .../resource-properties-form/property-value-field.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views-components/resource-properties-form/property-value-field.tsx b/src/views-components/resource-properties-form/property-value-field.tsx index 56eaf6d5..db2db3f7 100644 --- a/src/views-components/resource-properties-form/property-value-field.tsx +++ b/src/views-components/resource-properties-form/property-value-field.tsx @@ -7,9 +7,9 @@ import { WrappedFieldProps, Field, formValues } from 'redux-form'; import { compose } from 'redux'; import { Autocomplete } from '~/components/autocomplete/autocomplete'; import { Vocabulary } from '~/models/vocabulary'; -import { require } from '~/validators/require'; import { PROPERTY_KEY_FIELD_NAME } from '~/views-components/resource-properties-form/property-key-field'; import { VocabularyProp, connectVocabulary, buildProps } from '~/views-components/resource-properties-form/property-field-common'; +import { TAG_VALUE_VALIDATION } from '~/validators/validators'; interface PropertyKeyProp { propertyKey: string; @@ -39,8 +39,8 @@ const PropertyValueInput = ({ vocabulary, propertyKey, ...props }: WrappedFieldP const getValidation = (props: PropertyValueFieldProps) => isStrictTag(props.propertyKey, props.vocabulary) - ? [require, matchTagValues(props)] - : [require]; + ? [...TAG_VALUE_VALIDATION, matchTagValues(props)] + : TAG_VALUE_VALIDATION; const matchTagValues = ({ vocabulary, propertyKey }: PropertyValueFieldProps) => (value: string) => -- 2.30.2