code refactoring
This commit is contained in:
parent
8afb553158
commit
e0fc82fa28
@ -2,7 +2,8 @@ export interface IProject{
|
|||||||
projectId: number;
|
projectId: number;
|
||||||
name: string;
|
name: string;
|
||||||
description: string;
|
description: string;
|
||||||
categories: string[];
|
categories: string;
|
||||||
|
categoryList: string[];
|
||||||
roles: string[];
|
roles: string[];
|
||||||
responsibilities: string[];
|
responsibilities: string[];
|
||||||
technologiesUsed: string[];
|
technologiesUsed: string[];
|
||||||
|
|||||||
@ -38,7 +38,7 @@ categoryClicked: boolean = false;
|
|||||||
? this.model.projects
|
? this.model.projects
|
||||||
: this.model.projects.filter(
|
: this.model.projects.filter(
|
||||||
(project: IProject) => {
|
(project: IProject) => {
|
||||||
return project.categories.includes(category)
|
return project.categoryList.includes(category)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user