From 52ba6ba189be6673e901e6efb51d276eedf68ef5 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" Date: Wed, 6 Oct 2021 07:46:12 -0300 Subject: [PATCH] fix: When click on "View all" from favorite tab, get error --- 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); },