fix: use bool properly

Co-authored-by: Ejaaz Khan <67804911+iamejaaz@users.noreply.github.com>
This commit is contained in:
avc 2025-11-24 07:17:25 +01:00 committed by GitHub
parent e5f4fef012
commit b429b7e35d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -198,7 +198,7 @@ frappe.ui.form.PrintView = class {
this.setup_customize_dialog();
// print designer link
if (frappe.boot.sysdefaults.disable_product_suggestion !== "1") {
if (!cint(frappe.boot.sysdefaults.disable_product_suggestion)) {
if (Object.keys(frappe.boot.versions).includes("print_designer")) {
this.page.add_inner_message(`
<a style="line-height: 2.4" href="/app/print-designer?doctype=${this.frm.doctype}">