Skip to content

Commit

Permalink
Merge pull request #2679 from karelhala/no-empty-bundle
Browse files Browse the repository at this point in the history
Do not include empty bundle in navigations
  • Loading branch information
Hyperkid123 authored Nov 3, 2023
2 parents e740df9 + d6638e4 commit 92e3d7c
Show file tree
Hide file tree
Showing 2 changed files with 2 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(11);
expect(axiosGetSpy).toHaveBeenCalledTimes(10);
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
2 changes: 1 addition & 1 deletion src/components/AppFilter/useAppFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const requiredBundles = [
'business-services',
'subscriptions',
...(!isProd() ? previewBundles : isBeta() ? previewBundles : []),
];
].filter(Boolean);

export const itLessBundles = ['openshift', 'insights', 'settings', 'iam'];

Expand Down

0 comments on commit 92e3d7c

Please sign in to comment.