Skip to content

Commit

Permalink
fix(js): Correct this binding in groupList#handleCursorChange (#82840)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser authored Jan 2, 2025
1 parent 0ce7161 commit eb8d0c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/app/components/issues/groupList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,12 @@ class GroupList extends Component<Props, State> {
return queryParams;
}

handleCursorChange(
handleCursorChange = (
cursor: string | undefined,
path: string,
query: Record<string, any>,
pageDiff: number
) {
) => {
const queryPageInt = parseInt(query.page, 10);
let nextPage: number | undefined = isNaN(queryPageInt)
? pageDiff
Expand All @@ -238,7 +238,7 @@ class GroupList extends Component<Props, State> {
pathname: path,
query: {...query, cursor, page: nextPage},
});
}
};

onGroupChange() {
const groups = GroupStore.getAllItems() as Group[];
Expand Down

0 comments on commit eb8d0c6

Please sign in to comment.