This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch hugh/fix-metadata-showing
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 27694f25a3bcc3eba76cb9b17b27b2fdd022ca9b
Author: hughhhh <[email protected]>
AuthorDate: Tue Aug 3 16:26:35 2021 -0400

    remove grey space with no metadata
---
 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;
     }
 

Reply via email to