code refactoring

This commit is contained in:
Bangara Raju Kottedi 2024-05-02 17:57:43 +05:30
parent 8afb553158
commit e0fc82fa28
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,8 @@ export interface IProject{
projectId: number;
name: string;
description: string;
categories: string[];
categories: string;
categoryList: string[];
roles: string[];
responsibilities: string[];
technologiesUsed: string[];

View File

@ -38,7 +38,7 @@ categoryClicked: boolean = false;
? this.model.projects
: this.model.projects.filter(
(project: IProject) => {
return project.categories.includes(category)
return project.categoryList.includes(category)
});
}
}