Skip to content

Commit

Permalink
fix: undefined categories
Browse files Browse the repository at this point in the history
  • Loading branch information
DomWane committed Oct 25, 2024
1 parent 26d9de5 commit b52cad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composables/useData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export const useData = defineStore('data', () => {
const groupedProjectsPerCategory = computed(() => {
const groupedProjects = categories.value.map((category) => {
const projectsInCategory = filteredProjects.value.filter(project =>
project.categories.includes(category.id),
project.categories?.includes(category.id),
)

return {
Expand Down

0 comments on commit b52cad1

Please sign in to comment.