You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2023/06/29 20:11:32 UTC
[superset] branch master updated: fix: Error when searching for a dashboard in the chart list (#24546)
This is an automated email from the ASF dual-hosted git repository.
michaelsmolina pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 2b1275d8c4 fix: Error when searching for a dashboard in the chart list (#24546)
2b1275d8c4 is described below
commit 2b1275d8c4dd0dbaa4c034b6454da0df109e2aa4
Author: Michael S. Molina <70...@users.noreply.github.com>
AuthorDate: Thu Jun 29 17:11:25 2023 -0300
fix: Error when searching for a dashboard in the chart list (#24546)
---
superset-frontend/src/pages/ChartList/index.tsx | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/superset-frontend/src/pages/ChartList/index.tsx b/superset-frontend/src/pages/ChartList/index.tsx
index c853c40d8f..ef1f9374e4 100644
--- a/superset-frontend/src/pages/ChartList/index.tsx
+++ b/superset-frontend/src/pages/ChartList/index.tsx
@@ -270,8 +270,8 @@ function ChartList(props: ChartListProps) {
? {
filters: [
{
- col: 'dashboards',
- opr: FilterOperator.relationManyMany,
+ col: 'dashboard_title',
+ opr: FilterOperator.startsWith,
value: filterValue,
},
],
@@ -287,9 +287,7 @@ function ChartList(props: ChartListProps) {
...filters,
});
const response: void | JsonResponse = await SupersetClient.get({
- endpoint: !filterValue
- ? `/api/v1/dashboard/?q=${queryParams}`
- : `/api/v1/chart/?q=${queryParams}`,
+ endpoint: `/api/v1/dashboard/?q=${queryParams}`,
}).catch(() =>
addDangerToast(t('An error occurred while fetching dashboards')),
);