ui: Fix failure in deletion of templates (#5283)

This commit is contained in:
Pearl Dsilva 2021-08-06 12:42:45 +05:30 committed by GitHub
parent b6350be6ec
commit f9fbd86efe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -382,6 +382,9 @@ export default {
}
},
deleteTemplate (template) {
if (!template.id) {
template = this.currentRecord
}
const params = {
id: template.id,
forced: this.forcedDelete,