This is an automated email from the ASF dual-hosted git repository.
hugh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 11a2d4d fix: Remove grey bar for TableElement component when
`metadata` is empty (#16054)
11a2d4d is described below
commit 11a2d4dfdd42bed78c913d0b2b1563e077425acf
Author: Hugh A. Miles II <[email protected]>
AuthorDate: Wed Aug 4 17:07:20 2021 -0400
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
---
superset-frontend/src/SqlLab/components/TableElement.tsx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/superset-frontend/src/SqlLab/components/TableElement.tsx
b/superset-frontend/src/SqlLab/components/TableElement.tsx
index 775c925..d64ce21 100644
--- a/superset-frontend/src/SqlLab/components/TableElement.tsx
+++ b/superset-frontend/src/SqlLab/components/TableElement.tsx
@@ -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;
}