diff --git a/web/src/views/project/Templates.vue b/web/src/views/project/Templates.vue index 5c82946a..679b584e 100644 --- a/web/src/views/project/Templates.vue +++ b/web/src/views/project/Templates.vue @@ -399,7 +399,7 @@ export default { return; } - const template = this.items.find((item) => item.id === data.template_id); + const template = (this.items || []).find((item) => item.id === data.template_id); if (template == null) { return;