Skip to content

Commit

Permalink
fix: set default columns & rows
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Nov 28, 2023
1 parent 4aa4648 commit 7eca240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crm/api/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def get_filterable_fields(doctype: str):

@frappe.whitelist()
def get_list_data(doctype: str, filters: dict, order_by: str):
columns = []
rows = []
columns = [{"label": "Name", "key": "name", "fieldtype": "Data"}]
rows = ["name"]

if frappe.db.exists("CRM List View Settings", doctype):
list_view_settings = frappe.get_doc("CRM List View Settings", doctype)
Expand Down

0 comments on commit 7eca240

Please sign in to comment.