fix(ui): running task from dropdown if no project is open

This commit is contained in:
Guillaume Chau
2018-07-11 01:01:42 +02:00
parent 93940c2c25
commit c9f8920d5c
@@ -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: {