Skip to content

Commit 62fe428

Browse files
committed
fix(ui): null pointer
1 parent 340aafe commit 62fe428

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

web/src/components/TaskLogDialog.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ export default {
110110
},
111111
112112
async loadData() {
113+
if (this.itemId == null) {
114+
return;
115+
}
113116
this.item = await this.loadProjectResource('tasks', this.itemId);
114117
this.template = await this.loadProjectResource('templates', this.item.template_id);
115118
},

0 commit comments

Comments
 (0)