X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3e56db626688ee6225d40b7e4c511e3217e84847..5ec1472f3309b09bfcbba16148181d5d4a343f63:/src/models/vocabulary.ts diff --git a/src/models/vocabulary.ts b/src/models/vocabulary.ts index 03f28c07bf..3c5428446c 100644 --- a/src/models/vocabulary.ts +++ b/src/models/vocabulary.ts @@ -47,7 +47,7 @@ export const getTagValueID = (tagKeyID:string, tagValueLabel:string, vocabulary: (tagKeyID && vocabulary.tags[tagKeyID] && vocabulary.tags[tagKeyID].values) ? Object.keys(vocabulary.tags[tagKeyID].values!).find( k => vocabulary.tags[tagKeyID].values![k].labels.find( - l => l.label === tagValueLabel) !== undefined) || '' + l => l.label.toLowerCase() === tagValueLabel.toLowerCase()) !== undefined) || '' : ''; export const getTagValueLabel = (tagKeyID:string, tagValueID:string, vocabulary: Vocabulary) => @@ -94,7 +94,7 @@ export const getTags = ({ tags }: Vocabulary) => { export const getTagKeyID = (tagKeyLabel:string, vocabulary: Vocabulary) => Object.keys(vocabulary.tags).find( k => vocabulary.tags[k].labels.find( - l => l.label === tagKeyLabel) !== undefined + l => l.label.toLowerCase() === tagKeyLabel.toLowerCase()) !== undefined ) || ''; export const getTagKeyLabel = (tagKeyID:string, vocabulary: Vocabulary) =>