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:
parent
7ef97a54e2
commit
11a2d4dfdd
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue