Skip to content

Commit

Permalink
Allow subs navigation on production (#2677)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Maroši <[email protected]>
  • Loading branch information
karelhala and Hyperkid123 authored Nov 2, 2023
1 parent 5f6dd39 commit d6f0a38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/AppFilter/useAppFilter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe('useAppFilter', () => {
await act(async () => {
result.current.setIsOpen(true);
});
expect(axiosGetSpy).toHaveBeenCalledTimes(10);
expect(axiosGetSpy).toHaveBeenCalledTimes(11);
for (let index = 0; index < 8; index++) {
expect(axiosGetSpy.mock.calls[index]).toEqual([
`/api/chrome-service/v1/static/stable/stage/navigation/${requiredBundles[index]}-navigation.json?ts=666`,
Expand Down
3 changes: 2 additions & 1 deletion src/components/AppFilter/useAppFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type AppFilterBucket = {
links: NavItem[];
};

const previewBundles = ['subscriptions'];
const previewBundles = [''];

export const requiredBundles = [
'application-services',
Expand All @@ -24,6 +24,7 @@ export const requiredBundles = [
'iam',
'quay',
'business-services',
'subscriptions',
...(!isProd() ? previewBundles : isBeta() ? previewBundles : []),
];

Expand Down

0 comments on commit d6f0a38

Please sign in to comment.