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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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;
}