Skip to content

Commit

Permalink
Fix dispatch page filter param - use github_user for legacy roles (#4144
Browse files Browse the repository at this point in the history
) (#4147)

Issue: AAH-2670
(cherry picked from commit 271a9d5)

Co-authored-by: Martin Hradil <[email protected]>
  • Loading branch information
patchback[bot] and himdel authored Aug 27, 2023
1 parent c7e6a47 commit 508f508
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/2670.bug
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix dispatch page filter param
2 changes: 1 addition & 1 deletion src/containers/not-found/dispatch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const Dispatch = (props: RouteProps) => {
.catch(() => setCollections([]));

if (featureFlags.legacy_roles) {
LegacyRoleAPI.list({ username: namespace, name })
LegacyRoleAPI.list({ github_user: namespace, name })
.then(({ data: { results } }) => setRoles(results || []))
.catch(() => setRoles([]));
}
Expand Down

0 comments on commit 508f508

Please sign in to comment.