Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit 4794578

Browse files
author
Dmitry Yadrikhinsky
committed
Default project
1 parent 63bc904 commit 4794578

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/services/projects/ProjectStore.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ export default class ProjectStore {
6363

6464
restore() {
6565
this.projects = this.projectService.getAll();
66-
this.activeProject = Object.keys(this.projects)[0];
66+
if (this.projects.length > 0) {
67+
this.activeProject = this.projects[0].key;
68+
}
6769
}
6870
}

0 commit comments

Comments
 (0)