Skip to content

Commit c9f8920

Browse files
author
Guillaume Chau
committed
fix(ui): running task from dropdown if no project is open
1 parent 93940c2 commit c9f8920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-ui/src/components/ProjectTasksDropdown.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default {
118118
async openTask (task, run = false) {
119119
this.loading = true
120120
121-
if (task.project.id !== this.projectCurrent.id) {
121+
if (!this.projectCurrent || task.project.id !== this.projectCurrent.id) {
122122
await this.$apollo.mutate({
123123
mutation: PROJECT_OPEN,
124124
variables: {

0 commit comments

Comments
 (0)