Skip to content

Commit

Permalink
Merge branch 'main' into fix-symlinks-table
Browse files Browse the repository at this point in the history
  • Loading branch information
wslulciuc authored Oct 27, 2022
2 parents 68781bf + 64d8cd0 commit 6b50627
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions web/src/components/datasets/DatasetInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ interface DatasetInfoProps {
const DatasetInfo: FunctionComponent<DatasetInfoProps> = props => {
const { datasetFields, facets, run } = props

if (datasetFields.length === 0) {
return <MqEmpty title={'No Fields'} body={'Try adding dataset fields.'} />
}

return (
<Box>
{datasetFields.length === 0 && <MqEmpty title={'No Fields'} body={'Try adding dataset fields.'} />}
{datasetFields.length > 0 && (
<Table size='small'>
<TableHead>
<TableRow>
Expand All @@ -53,6 +51,7 @@ const DatasetInfo: FunctionComponent<DatasetInfoProps> = props => {
})}
</TableBody>
</Table>
)}
{facets && (
<Box mt={2}>
<Box mb={1}>
Expand Down

0 comments on commit 6b50627

Please sign in to comment.