Skip to content

Commit

Permalink
fix(ui): check current project still exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Jun 3, 2018
1 parent 588ad75 commit 251509c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/@vue/cli-ui/src/graphql-api/connectors/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ function autoClean (projects, context) {
}

function getCurrent (context) {
if (currentProject && !fs.existsSync(currentProject.path)) {
log('Project folder not found', currentProject.id, currentProject.path)
return null
}
return currentProject
}

Expand Down

0 comments on commit 251509c

Please sign in to comment.