From d760e885d78e51a445caf3161a37c70a65e5e4c2 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Thu, 7 Jan 2021 22:26:31 -0800 Subject: [PATCH] window.location > history.push (#12347) --- superset-frontend/src/views/CRUD/welcome/ChartTable.tsx | 2 +- superset-frontend/src/views/CRUD/welcome/DashboardTable.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/views/CRUD/welcome/ChartTable.tsx b/superset-frontend/src/views/CRUD/welcome/ChartTable.tsx index f9c7be7655e..705e8d4f98b 100644 --- a/superset-frontend/src/views/CRUD/welcome/ChartTable.tsx +++ b/superset-frontend/src/views/CRUD/welcome/ChartTable.tsx @@ -151,7 +151,7 @@ function ChartTable({ ), buttonStyle: 'tertiary', onClick: () => { - history.push('/chart/add'); + window.location.assign('/chart/add'); }, }, { diff --git a/superset-frontend/src/views/CRUD/welcome/DashboardTable.tsx b/superset-frontend/src/views/CRUD/welcome/DashboardTable.tsx index 2182982ff97..ed636db45b7 100644 --- a/superset-frontend/src/views/CRUD/welcome/DashboardTable.tsx +++ b/superset-frontend/src/views/CRUD/welcome/DashboardTable.tsx @@ -157,7 +157,7 @@ function DashboardTable({ ), buttonStyle: 'tertiary', onClick: () => { - history.push('/dashboard/new'); + window.location.assign('/dashboard/new'); }, }, {