Skip to content

Commit 3000bdf

Browse files
author
Guillaume Chau
committed
fix(ui): error in ProjectTaskDetails
1 parent c4f3358 commit 3000bdf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/@vue/cli-ui/src/views/ProjectTaskDetails.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,13 @@ export default {
239239
computed: {
240240
currentViewComponent () {
241241
if (this.currentView !== '_output') {
242-
const id = this.task.views.find(
242+
const view = this.task.views.find(
243243
view => view.id === this.currentView
244-
).component
245-
return id
244+
)
245+
if (view) {
246+
const id = view.component
247+
return id
248+
}
246249
}
247250
}
248251
},

0 commit comments

Comments
 (0)