Skip to content

bug: Query Reports fail to load due to frappe.breadcrumbs.update error #11

@vaishalisahni

Description

@vaishalisahni

Description:
When opening Query Reports in Frappe v15, the console shows the following error:

Uncaught TypeError: Cannot read properties of undefined (reading 'HR')
    at frappe.breadcrumbs.update
    at Object.add
    at QueryReport.set_breadcrumbs
    at QueryReport.setup_page_head

Steps to Reproduce:

  1. Go to any Query Report in Frappe v15 (e.g., HR Reports).
  2. Open the report.
  3. Observe the console error and that the report is not displayed properly.

Expected Behavior:
Query Reports should display normally, and breadcrumbs should render without errors.

Actual Behavior:
The report fails to display due to the TypeError, caused by frappe.breadcrumbs.update trying to read this.all[page] which is undefined for Query Reports.

Additional Info / Console Log:

Uncaught TypeError: Cannot read properties of undefined (reading 'HR')
    at frappe.breadcrumbs.update
    at Object.add
    at QueryReport.set_breadcrumbs
    at QueryReport.setup_page_head
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions