We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 68781bf + 64d8cd0 commit 6b50627Copy full SHA for 6b50627
1 file changed
web/src/components/datasets/DatasetInfo.tsx
@@ -21,12 +21,10 @@ interface DatasetInfoProps {
21
const DatasetInfo: FunctionComponent<DatasetInfoProps> = props => {
22
const { datasetFields, facets, run } = props
23
24
- if (datasetFields.length === 0) {
25
- return <MqEmpty title={'No Fields'} body={'Try adding dataset fields.'} />
26
- }
27
-
28
return (
29
<Box>
+ {datasetFields.length === 0 && <MqEmpty title={'No Fields'} body={'Try adding dataset fields.'} />}
+ {datasetFields.length > 0 && (
30
<Table size='small'>
31
<TableHead>
32
<TableRow>
@@ -53,6 +51,7 @@ const DatasetInfo: FunctionComponent<DatasetInfoProps> = props => {
53
51
})}
54
52
</TableBody>
55
</Table>
+ )}
56
{facets && (
57
<Box mt={2}>
58
<Box mb={1}>
0 commit comments