refactor: add better name to variable

This commit is contained in:
khushi8112 2025-10-15 12:54:49 +05:30
parent 4b20d236f5
commit 587d770c49

View file

@ -273,6 +273,14 @@ frappe.ui.form.PrintView = class {
});
return;
}
let is_editable = print_format.name && print_format.custom_format;
if (is_editable) {
frappe.set_route("Form", "Print Format", print_format.name);
return;
}
if (is_custom_format) {
if (print_format.print_format_builder_beta) {
frappe.set_route("print-format-builder-beta", print_format.name);