From f53f1836286110f7b4e5f17229ef8909f7713ec2 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Thu, 9 Jan 2025 14:09:56 -0800 Subject: [PATCH] fix type error --- .../src/components/Label/reusable/DatasetTypeLabel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/src/components/Label/reusable/DatasetTypeLabel.tsx b/superset-frontend/src/components/Label/reusable/DatasetTypeLabel.tsx index 939389e662ce9..7379665583c7a 100644 --- a/superset-frontend/src/components/Label/reusable/DatasetTypeLabel.tsx +++ b/superset-frontend/src/components/Label/reusable/DatasetTypeLabel.tsx @@ -36,7 +36,7 @@ const DatasetTypeLabel: React.FC = ({ datasetType }) => { ) : ( ); - const labelType: 'primary' | 'success' = + const labelType: 'primary' | 'secondary' = datasetType === 'physical' ? 'primary' : 'secondary'; return (