fix: Remove grey bar for TableElement component when metadata is empty (#16054)

* create serialize json function

* remove grey space with no metadata

* remove console log
This commit is contained in:
Hugh A. Miles II
2021-08-04 17:07:20 -04:00
committed by GitHub
parent 7ef97a54e2
commit 11a2d4dfdd

View File

@@ -133,7 +133,8 @@ const TableElement = ({ table, actions, ...props }: TableElementProps) => {
));
}
if (!partitions && !metadata) {
if (!partitions && (!metadata || !metadata.length)) {
// hide partition and metadata card view
return null;
}