mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-22 04:18:33 -05:00
fix(ui): running task from dropdown if no project is open
This commit is contained in:
@@ -118,7 +118,7 @@ export default {
|
||||
async openTask (task, run = false) {
|
||||
this.loading = true
|
||||
|
||||
if (task.project.id !== this.projectCurrent.id) {
|
||||
if (!this.projectCurrent || task.project.id !== this.projectCurrent.id) {
|
||||
await this.$apollo.mutate({
|
||||
mutation: PROJECT_OPEN,
|
||||
variables: {
|
||||
|
||||
Reference in New Issue
Block a user