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

rusackas pushed a commit to branch no-empty-data-type-label
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 93f6207d1e6f4c0161c86e56fe8d1fa43d3b48b2
Author: Evan Rusackas <[email protected]>
AuthorDate: Tue May 11 21:43:33 2021 -0700

    fix: don't show busted label for unknown data types
---
 superset-frontend/src/datasource/DatasourceEditor.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset-frontend/src/datasource/DatasourceEditor.jsx 
b/superset-frontend/src/datasource/DatasourceEditor.jsx
index b8e6953..0fac730 100644
--- a/superset-frontend/src/datasource/DatasourceEditor.jsx
+++ b/superset-frontend/src/datasource/DatasourceEditor.jsx
@@ -239,7 +239,7 @@ function ColumnCollectionTable({
           ) : (
             v
           ),
-        type: d => <Label>{d}</Label>,
+        type: d => (d ? <Label>{d}</Label> : null),
         is_dttm: checkboxGenerator,
         filterable: checkboxGenerator,
         groupby: checkboxGenerator,

Reply via email to