Skip to content

Commit

Permalink
Get favorites on start
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed Nov 8, 2022
1 parent 9f9ef31 commit 2fbc438
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions superset-frontend/src/views/CRUD/welcome/ChartTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ function ChartTable({
filters: getFilters(filter),
});

useEffect(() => {
getData(chartFilter)
}, [])

useEffect(() => {
if (loaded || chartFilter === 'Favorite') {
getData(chartFilter);
Expand Down
4 changes: 4 additions & 0 deletions superset-frontend/src/views/CRUD/welcome/DashboardTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ function DashboardTable({
setPreparingExport(true);
};

useEffect(() => {
getData(defaultFilter)
}, [])

const handleDashboardEdit = (edits: Dashboard) =>
SupersetClient.get({
endpoint: `/api/v1/dashboard/${edits.id}`,
Expand Down

0 comments on commit 2fbc438

Please sign in to comment.