Skip to content

Commit

Permalink
Concept Home | Fixing dormant locales display
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Oct 19, 2021
1 parent befebc0 commit 1ba02c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/concepts/HomeLocales.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
import {
Info as InfoIcon
} from '@mui/icons-material'
import { get, isEmpty, forEach, map, groupBy, without, keys, compact } from 'lodash';
import { get, isEmpty, forEach, map, groupBy, without, keys, compact, omitBy } from 'lodash';
import TabCountLabel from '../common/TabCountLabel';
import LocalizedTextRow from './LocalizedTextRow';

Expand Down Expand Up @@ -73,7 +73,7 @@ const HomeLocales = ({ concept, label, locales, source, tooltip, isDescription }
<Table size="small" aria-label="concept-home-mappings" className='nested-mappings'>
<TableBody>
{
map(groupedLocales.defaultLocales, (localizedTexts, locale) => (
map(omitBy(groupedLocales.defaultLocales, isEmpty), (localizedTexts, locale) => (
<LocalizedTextRow
concept={concept}
key={locale}
Expand All @@ -84,7 +84,7 @@ const HomeLocales = ({ concept, label, locales, source, tooltip, isDescription }
))
}
{
map(groupedLocales.supportedLocales, (localizedTexts, locale) => (
map(omitBy(groupedLocales.supportedLocales, isEmpty), (localizedTexts, locale) => (
<LocalizedTextRow
concept={concept}
key={locale}
Expand All @@ -95,7 +95,7 @@ const HomeLocales = ({ concept, label, locales, source, tooltip, isDescription }
))
}
{
map(groupedLocales.rest, (localizedTexts, locale) => (
map(omitBy(groupedLocales.rest, isEmpty), (localizedTexts, locale) => (
<LocalizedTextRow
concept={concept}
key={locale}
Expand Down

0 comments on commit 1ba02c4

Please sign in to comment.