Skip to content

Error : Grid (Table) Component Fails to Display Data and Triggers Error #786

@Mudassir200

Description

@Mudassir200

📋 Description:

When using the Child Table (Grid) component in Frappe CRM:

  1. If the initial value is an empty string (""), the component tries to map() over it during mounted, which leads to a page-breaking error because map is not valid on a string.
  2. When data is added using the push() method to the definedModel variable, it does not emit a change event.
  3. As a result, the component's computed value does not update, and the selected data is not displayed.

🛠️ Steps to Reproduce:

  1. Use Child Table in a doctype then add in layout
  2. Open Modal for create reocrd
  3. Also Add Values then check

Notice:

Component breaks on mount.
UI doesn't reflect updated values.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions