Skip to content

Commit 5bd02f8

Browse files
fix: remove unneeded existence check
1 parent 61e822c commit 5bd02f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pdf_on_submit/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def extend_boot_info(bootinfo):
1212
bootinfo.pdf_on_submit = frappe._dict(
1313
{
1414
"show_pdf_button": show_pdf_button,
15-
"enabled_doctypes": [row.document_type for row in settings.enabled_for if row.document_type]
15+
"enabled_doctypes": [row.document_type for row in settings.enabled_for]
1616
if show_pdf_button
1717
else [],
1818
}

0 commit comments

Comments
 (0)