fix: empty array does not trigger form change

This commit is contained in:
Faris Ansari 2020-09-22 09:09:24 +05:30
parent 9673a96ebc
commit 0b4471cd80

View file

@ -74,7 +74,7 @@ frappe.ui.form.on("Website Theme", {
.get_field("apps")
.get_unchecked_options()
.map(app => ({ app: app }));
frm.set_value("ignored_apps", value);
frm.set_value("ignored_apps", value.length ? value : null);
},
options: apps.map(app => ({
label: app.title,