20085: Almost works, needs to save on change to share/public/private
[arvados-workbench2.git] / src / views-components / resource-properties-form / property-value-field.tsx
index b8e525bf675ad5ebe6e7171e2798a393d2ea8855..8941d441a821fd9cbbfca21fc70544e87d19304e 100644 (file)
@@ -89,7 +89,7 @@ const getValidation = (props: PropertyValueFieldProps) =>
 
 const matchTagValues = ({ vocabulary, propertyKeyId }: PropertyValueFieldProps) =>
     (value: string) =>
-        getTagValues(propertyKeyId, vocabulary).find(v => v.label === value)
+        getTagValues(propertyKeyId, vocabulary).find(v => !value || v.label === value)
             ? undefined
             : 'Incorrect value';