diff --git a/superset-frontend/src/SqlLab/components/TableElement.tsx b/superset-frontend/src/SqlLab/components/TableElement.tsx index 775c9252f..d64ce2157 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; }