Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>
: 'Incorrect key';
const getSuggestions = (value: string, vocabulary: Vocabulary) =>
- getTagsList(vocabulary).filter(tag => tag.label.includes(value) && tag.label !== value);
+ getTagsList(vocabulary).filter(tag => tag.label.toLowerCase().includes(value.toLowerCase()));
const getTagsList = ({ tags }: Vocabulary) => {
const ret = tags && Object.keys(tags)
: 'Incorrect value';
const getSuggestions = (value: string, tagKey: string, vocabulary: Vocabulary) =>
- getTagValues(tagKey, vocabulary).filter(v => v.label.includes(value) && v.label !== value);
+ getTagValues(tagKey, vocabulary).filter(v => v.label.toLowerCase().includes(value.toLowerCase()));
const isStrictTag = (tagKey: string, vocabulary: Vocabulary) => {
const tag = vocabulary.tags[tagKey];