Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dashboard): make to show the correct owned objects #19372

Merged
merged 7 commits into from
Mar 31, 2022
Merged
4 changes: 2 additions & 2 deletions superset-frontend/src/views/CRUD/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ export const getUserOwnedObjects = (
resource: string,
filters: Array<Filters> = [
{
col: 'created_by',
opr: 'rel_o_m',
col: 'owners',
opr: 'rel_m_m',
value: `${userId}`,
},
],
Expand Down
4 changes: 2 additions & 2 deletions superset-frontend/src/views/CRUD/welcome/Welcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ function Welcome({ user, addDangerToast }: WelcomeProps) {
// Sets other activity data in parallel with recents api call
const ownSavedQueryFilters = [
{
col: 'owners',
opr: 'rel_m_m',
col: 'created_by',
opr: 'rel_o_m',
value: `${id}`,
},
];
Expand Down