Skip to content
Snippets Groups Projects
Unverified Commit 270d16a5 authored by csuadev's avatar csuadev Committed by GitHub
Browse files

chore: hide marketplace categories when hidden property comes as true (#30752)

parent e3a475d2
No related branches found
No related tags found
No related merge requests found
......@@ -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([
{
......
......@@ -23,6 +23,7 @@ export interface IAppExternalURL {
export interface ICategory {
createdDate: Date;
description: string;
hidden: boolean;
id: string;
modifiedDate: Date;
title: string;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment