From c57719128f5208d83ad15268b3d2bb4d00b62954 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Wed, 6 Oct 2021 08:18:56 -0300 Subject: [PATCH] fix: When click on "View all" from favorite tab, get error (#16988) --- 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 b7d81b37f3906..60a91813f60c4 100644 --- a/superset-frontend/src/views/CRUD/welcome/ChartTable.tsx +++ b/superset-frontend/src/views/CRUD/welcome/ChartTable.tsx @@ -218,7 +218,7 @@ function ChartTable({ onClick: () => { const target = chartFilter === 'Favorite' - ? '/chart/list/?filters=(favorite:!t)' + ? '/chart/list/?filters=(favorite:(label:Yes,value:!t))' : '/chart/list/'; history.push(target); }, diff --git a/superset-frontend/src/views/CRUD/welcome/DashboardTable.tsx b/superset-frontend/src/views/CRUD/welcome/DashboardTable.tsx index 4f8c1ff008349..0dd594d87b361 100644 --- a/superset-frontend/src/views/CRUD/welcome/DashboardTable.tsx +++ b/superset-frontend/src/views/CRUD/welcome/DashboardTable.tsx @@ -220,7 +220,7 @@ function DashboardTable({ onClick: () => { const target = dashboardFilter === 'Favorite' - ? '/dashboard/list/?filters=(favorite:!t)' + ? '/dashboard/list/?filters=(favorite:(label:Yes,value:!t))' : '/dashboard/list/'; history.push(target); },