Skip to content

Commit

Permalink
window.location > history.push
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas committed Jan 8, 2021
1 parent cbda599 commit b7a19dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion superset-frontend/src/views/CRUD/welcome/ChartTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function ChartTable({
),
buttonStyle: 'tertiary',
onClick: () => {
history.push('/chart/add');
window.location.assign('/chart/add');
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function DashboardTable({
),
buttonStyle: 'tertiary',
onClick: () => {
history.push('/dashboard/new');
window.location.assign('/dashboard/new');
},
},
{
Expand Down

0 comments on commit b7a19dc

Please sign in to comment.