From ca4613365dcc5e9e88d6c9ea4f05ffbed4b37daa Mon Sep 17 00:00:00 2001 From: Michal Klobukowski Date: Wed, 28 Nov 2018 13:07:12 +0100 Subject: [PATCH] Restore TAG_KEY_VALIDATION Feature #14393 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- .../resource-properties-form/property-key-field.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views-components/resource-properties-form/property-key-field.tsx b/src/views-components/resource-properties-form/property-key-field.tsx index a8584c10..e6708a39 100644 --- a/src/views-components/resource-properties-form/property-key-field.tsx +++ b/src/views-components/resource-properties-form/property-key-field.tsx @@ -7,8 +7,8 @@ import { WrappedFieldProps, Field } from 'redux-form'; import { memoize } from 'lodash'; import { Autocomplete } from '~/components/autocomplete/autocomplete'; import { Vocabulary } from '~/models/vocabulary'; -import { require } from '~/validators/require'; import { connectVocabulary, VocabularyProp, buildProps } from '~/views-components/resource-properties-form/property-field-common'; +import { TAG_KEY_VALIDATION } from '~/validators/validators'; export const PROPERTY_KEY_FIELD_NAME = 'key'; @@ -30,8 +30,8 @@ const PropertyKeyInput = ({ vocabulary, ...props }: WrappedFieldProps & Vocabula const getValidation = memoize( (vocabulary: Vocabulary) => vocabulary.strict - ? [require, matchTags(vocabulary)] - : [require]); + ? [...TAG_KEY_VALIDATION, matchTags(vocabulary)] + : TAG_KEY_VALIDATION); const matchTags = (vocabulary: Vocabulary) => (value: string) => -- 2.30.2