diff --git a/superset-frontend/src/views/components/MenuRight.tsx b/superset-frontend/src/views/components/MenuRight.tsx index 2e9068e8b9758..4c34b883491c4 100644 --- a/superset-frontend/src/views/components/MenuRight.tsx +++ b/superset-frontend/src/views/components/MenuRight.tsx @@ -166,7 +166,7 @@ const RightMenu = ({ }, { label: t('Chart'), - url: !Number.isNaN(dashboardId) + url: Number.isInteger(dashboardId) ? `/chart/add?dashboard_id=${dashboardId}` : '/chart/add', icon: 'fa-fw fa-bar-chart',