You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2021/08/06 07:13:22 UTC

[cloudstack] branch main updated: ui: Fix failure in deletion of templates (#5283)

This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new f9fbd86  ui: Fix failure in deletion of templates (#5283)
f9fbd86 is described below

commit f9fbd86efe9f75266167fee9f0a4edbf063a39b7
Author: Pearl Dsilva <pe...@gmail.com>
AuthorDate: Fri Aug 6 12:42:45 2021 +0530

    ui: Fix failure in deletion of templates (#5283)
---
 ui/src/views/image/TemplateZones.vue | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ui/src/views/image/TemplateZones.vue b/ui/src/views/image/TemplateZones.vue
index 9928ff8..8999ec7 100644
--- a/ui/src/views/image/TemplateZones.vue
+++ b/ui/src/views/image/TemplateZones.vue
@@ -382,6 +382,9 @@ export default {
       }
     },
     deleteTemplate (template) {
+      if (!template.id) {
+        template = this.currentRecord
+      }
       const params = {
         id: template.id,
         forced: this.forcedDelete,