Skip to content

Commit

Permalink
ternary category
Browse files Browse the repository at this point in the history
  • Loading branch information
zkazharan committed Nov 4, 2023
1 parent 2b831fd commit c52144c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(main)/discover/Project.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? (
Expand Down

0 comments on commit c52144c

Please sign in to comment.