Skip to content

Commit

Permalink
fix: FE call to changed recent_activity endpoint (#24420)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed Jun 16, 2023
1 parent 6bb930e commit 62364a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion superset-frontend/src/features/home/ActivityTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import EmptyState from './EmptyState';
import { WelcomeTable } from './types';

/**
* Return result from /api/v1/log/recent_activity/{user_id}/
* Return result from /api/v1/log/recent_activity/
*/
interface RecentActivity {
action: string;
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function Welcome({ user, addDangerToast }: WelcomeProps) {
const userid = user.userId;
const id = userid!.toString(); // confident that user is not a guest user
const params = rison.encode({ page_size: 6 });
const recent = `/api/v1/log/recent_activity/${user.userId}/?q=${params}`;
const recent = `/api/v1/log/recent_activity/?q=${params}`;
const [activeChild, setActiveChild] = useState('Loading');
const userKey = dangerouslyGetItemDoNotUse(id, null);
let defaultChecked = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function RecentActivity({ user }: RecentActivityProps) {
className="table-condensed"
mutator={mutator}
sortable
dataEndpoint={`/api/v1/log/recent_activity/${user?.userId}/?q=${params}`}
dataEndpoint={`/api/v1/log/recent_activity/?q=${params}`}
noDataText={t('No Data')}
/>
</div>
Expand Down

0 comments on commit 62364a4

Please sign in to comment.