diff --git a/src/app/(main)/discover/Project.js b/src/app/(main)/discover/Project.js index fbfa7d1..3b2d2eb 100644 --- a/src/app/(main)/discover/Project.js +++ b/src/app/(main)/discover/Project.js @@ -52,7 +52,7 @@ export default function Project() { ) }) }else{ - const categoryDataProject = dataProject.filter((item) => item.categories.map((val) => val.id).includes(filterCategory.id)); + const categoryDataProject = dataProject.filter((item) => item.categories ? item.categories.map((val) => val.id).includes(filterCategory.id) : null); categoryDataProject.map((val, index) => { index % 2 !== 0 ? (