From 01d6c5fbcba3e51ffddf36aa0c5a0be7dc4127bc Mon Sep 17 00:00:00 2001 From: Michal Klobukowski Date: Wed, 28 Nov 2018 00:05:42 +0100 Subject: [PATCH] Update getTagValues to handle undefined tag values field Feature #14393 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- .../resource-properties-form/property-value-field.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a9edc804..9df29bd9 100644 --- a/src/views-components/resource-properties-form/property-value-field.tsx +++ b/src/views-components/resource-properties-form/property-value-field.tsx @@ -75,7 +75,7 @@ const isStrictTag = (tagName: string, vocabulary: Vocabulary) => { const getTagValues = (tagName: string, vocabulary: Vocabulary) => { const tag = vocabulary.tags[tagName]; - return tag ? tag.values : []; + return tag && tag.values ? tag.values : []; }; const ITEMS_PLACEHOLDER: string[] = []; -- 2.30.2