assign default value for projects

This commit is contained in:
isUnknown 2025-10-08 15:01:08 +02:00
parent d552b6bf5e
commit fb1a86712d

View file

@ -9,8 +9,8 @@ export const useProjectsStore = defineStore('projects', () => {
const currentProjects = computed(() => {
return (
projects.value
.filter((project) => project.status === 'listed')
.sort((a, b) => new Date(b.modified) - new Date(a.modified)) || []
?.filter((project) => project.status === 'listed')
.sort((a, b) => new Date(b.modified) - new Date(a.modified)) ?? []
);
});