fix: escape single quotes (#25104)
Resolves https://github.com/frappe/frappe/pull/25078#discussion_r1504084483
This commit is contained in:
parent
88c5da4d62
commit
ac05c7db6e
1 changed files with 1 additions and 1 deletions
|
|
@ -1474,7 +1474,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
this.data = this.data.filter((d) => !names.includes(d.name));
|
||||
for (let name of names) {
|
||||
this.$result
|
||||
.find(`.list-row-checkbox[data-name='${name}']`)
|
||||
.find(`.list-row-checkbox[data-name='${name.replace(/'/g, "\\'")}']`)
|
||||
.closest(".list-row-container")
|
||||
.remove();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue