Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1467 | Source version summary | added none …
Browse files Browse the repository at this point in the history
…display for null name type
  • Loading branch information
snyaggarwal committed Feb 13, 2023
1 parent 69516b6 commit 4915dc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/sources/SourceSummary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Table, TableHead, TableCell, TableBody, TableRow, TableContainer, Paper, Tooltip, Collapse, Button, Divider, List, ListItem, CircularProgress, Chip } from '@mui/material'
import DownIcon from '@mui/icons-material/KeyboardArrowDown';
import UpIcon from '@mui/icons-material/KeyboardArrowUp';
import { map, max, isEmpty, get } from 'lodash';
import { map, max, isEmpty, get, isNull } from 'lodash';
import { TOMATO_RED, BLUE, WHITE } from '../../common/constants';
import { toNumDisplay } from '../../common/utils';
import APIService from '../../services/APIService';
Expand All @@ -16,7 +16,7 @@ const FieldDistribution = ({distribution, field}) => {
{
map(distribution, state => (
<ListItem key={state[field]} secondaryAction={toNumDisplay(state.count)}>
{state[field]}
{isNull(state[field]) ? <i>None</i> : state[field]}
</ListItem>
))
}
Expand Down

0 comments on commit 4915dc1

Please sign in to comment.