assign default value for projects
This commit is contained in:
parent
d552b6bf5e
commit
fb1a86712d
1 changed files with 2 additions and 2 deletions
|
|
@ -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)) ?? []
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue