Skip to content
Snippets Groups Projects
Commit fe288888 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Additional null check

parent b9291ee5
No related branches found
No related tags found
1 merge request!20Update: Migrated Resource and ProjectView Apps
Pipeline #654661 passed
......@@ -47,14 +47,14 @@ export const useProjectStore = defineStore({
}
},
currentResources(): ResourceObject[] | null {
if (this.currentSlug) {
if (this.currentSlug && this.visitedProjects[this.currentSlug]) {
return this.visitedProjects[this.currentSlug].resources;
} else {
return null;
}
},
currentSubProjects(): ProjectObject[] | null {
if (this.currentSlug) {
if (this.currentSlug && this.visitedProjects[this.currentSlug]) {
return this.visitedProjects[this.currentSlug].subProjects;
} else {
return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment