From bc500c8853dbbe84f3cef03b7eaf4c3238e71cba Mon Sep 17 00:00:00 2001 From: fiftin Date: Wed, 26 Jun 2024 14:35:26 +0500 Subject: [PATCH] fix(web): issue https://github.com/semaphoreui/semaphore/issues/2136 --- web/src/views/project/Templates.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;