fix: Avoid suggesting invalid " " as default app
This commit is contained in:
parent
1b2cf94563
commit
1bdda7a803
3 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ frappe.ui.form.on("System Settings", {
|
|||
|
||||
frappe.xcall("frappe.apps.get_apps").then((r) => {
|
||||
let apps = r?.map((r) => r.name) || [];
|
||||
frm.set_df_property("default_app", "options", [" ", ...apps]);
|
||||
frm.set_df_property("default_app", "options", ["", ...apps]);
|
||||
});
|
||||
|
||||
frm.trigger("set_rounding_method_options");
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ frappe.ui.form.on("User", {
|
|||
|
||||
frappe.xcall("frappe.apps.get_apps").then((r) => {
|
||||
let apps = r?.map((r) => r.name) || [];
|
||||
frm.set_df_property("default_app", "options", [" ", ...apps]);
|
||||
frm.set_df_property("default_app", "options", ["", ...apps]);
|
||||
});
|
||||
|
||||
if (frm.is_new()) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ frappe.listview_settings["User"] = {
|
|||
|
||||
frappe.xcall("frappe.apps.get_apps").then((r) => {
|
||||
let apps = r?.map((r) => r.name) || [];
|
||||
default_app_field.options = [" ", ...apps].join("\n");
|
||||
default_app_field.options = ["", ...apps].join("\n");
|
||||
});
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue