mirror of
https://github.com/apache/superset.git
synced 2026-04-26 11:34:27 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user