Commit 95d83946 authored by Matija Obreza's avatar Matija Obreza

Merge branch '712-missing-translation-for-the-accession-number-filter-label' into 'master'

Missing translation for the "Accession number" filter label

Closes #712

See merge request genesys-pgr/genesys-ui!690
parents 56ae3af6 64c4d6ee
......@@ -138,6 +138,8 @@ const styles = (theme) => ({
// Following keywords are skipped for showing
const keywordsToSkip = ['eq', 'contains', 'sw'];
// Keywords for hidden path
const keywordsToHide = ['accessionNumbers'];
/**
* Remove value by path from filterObj and return updated filterObj.
......@@ -244,7 +246,9 @@ function getLabelName(path, value, lookups, prefix, t, labels, countryCodes) {
return t('public.prettyF.NOT', { what: t([ `public.prettyF.${prefix}.${prettyPath.replace(/^NOT\./, '')}`, `public.${prefix}.${prettyPath.replace(/^NOT\./, '')}` ]) });
}
const translatedPrettyPath = translatePath(t, prefix, prettyPath);
const translatedPrettyPath = keywordsToHide.some((word) => prettyPath.includes(word))
? ''
: translatePath(t, prefix, prettyPath);
// console.log(`${prettyPath} = ${translatedPrettyPath}`);
if (labels && !_.isEmpty(labels) && (prettyPath.includes('uuid'))) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment