Skip to content

Commit

Permalink
Merge pull request #1125 from Hyperkid123/prod-stable
Browse files Browse the repository at this point in the history
[prod-stable] Filter out RH marketplace source.
  • Loading branch information
Hyperkid123 committed Jul 11, 2023
2 parents 8c18286 + 2aa2a7c commit 2a28a66
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/api/wizardHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ import { getSourcesApi } from './entities';
export const doLoadSourceTypes = () =>
getSourcesApi()
.listSourceTypes()
.then((data) => ({ sourceTypes: data.data }));
// RH marketplace is not supposed to show up and is not supposed to even exist
// Until we know why we get in the UI, we filter it out for now
// Unable to use != query param
.then((data) => ({
sourceTypes: data.data.filter(({ name }) => name !== 'rh-marketplace'),
}));

export const doLoadApplicationTypes = () =>
getSourcesApi()
Expand Down

0 comments on commit 2a28a66

Please sign in to comment.