Skip to content

Commit

Permalink
fix: ignore empty/None scripts (#19111) (#19113)
Browse files Browse the repository at this point in the history
(cherry picked from commit 39faf34)

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush committed Dec 5, 2022
1 parent 01858b0 commit 2a96757
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frappe/desk/form/meta.py
Expand Up @@ -156,14 +156,17 @@ def add_custom_script(self):
list_script = ""
form_script = ""
for script in client_scripts:
if not script.script:
continue

if script.view == "List":
list_script += f"""
// {script.name}
{script.script}
"""

if script.view == "Form":
elif script.view == "Form":
form_script += f"""
// {script.name}
{script.script}
Expand Down

0 comments on commit 2a96757

Please sign in to comment.