diff --git a/src/modules/project/store.ts b/src/modules/project/store.ts
index 520f6d61a49aed52178dd4ca5aa114660f90c2ac..fe7acf7dc751fee8a2ef8650ac7eb531db6697a2 100644
--- a/src/modules/project/store.ts
+++ b/src/modules/project/store.ts
@@ -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;