diff --git a/apps/meteor/client/views/marketplace/hooks/useCategories.ts b/apps/meteor/client/views/marketplace/hooks/useCategories.ts index 4a457a146046..bf7a022f2ae3 100644 --- a/apps/meteor/client/views/marketplace/hooks/useCategories.ts +++ b/apps/meteor/client/views/marketplace/hooks/useCategories.ts @@ -21,11 +21,13 @@ export const useCategories = (): [CategoryDropDownGroups, selectedCategoriesList try { const fetchedCategories = await AppClientOrchestratorInstance.getCategories(); - const mappedCategories = fetchedCategories.map((currentCategory) => ({ - id: currentCategory.id, - label: currentCategory.title, - checked: false, - })); + const mappedCategories = fetchedCategories + .filter((currentCategory) => !currentCategory.hidden) + .map((currentCategory) => ({ + id: currentCategory.id, + label: currentCategory.title, + checked: false, + })); setCategories([ { diff --git a/apps/meteor/ee/client/apps/@types/IOrchestrator.ts b/apps/meteor/ee/client/apps/@types/IOrchestrator.ts index 246fd18326c4..ac2642161c2e 100644 --- a/apps/meteor/ee/client/apps/@types/IOrchestrator.ts +++ b/apps/meteor/ee/client/apps/@types/IOrchestrator.ts @@ -23,6 +23,7 @@ export interface IAppExternalURL { export interface ICategory { createdDate: Date; description: string; + hidden: boolean; id: string; modifiedDate: Date; title: string;