Skip to content

ReferenceError: fail is not defined in table-tree example crashes SharedTree #25905

@KHUSHIHN12

Description

@KHUSHIHN12

Describe the bug

While interacting with the table-tree example (examples/data-objects/table-tree), the application crashes with the following error in the browser console:

ReferenceError: fail is not defined.

This originates from the TableRowView component.
Once this exception is thrown, the underlying SharedTree enters an invalid state, and Fluid logs the following secondary error:

Invalid use of SharedTree after it was put into an invalid state

After this point, the container disconnects, and the session becomes unusable.

To Reproduce

Steps to reproduce the behavior:

  1. Navigate to:
    examples/data-objects/table-tree
  2. Install dependencies and run the example .
  3. Open the app in the browser (default: http://localhost:8080).
  4. Add a few rows to the table.
  5. Attempt to delete a row.
  6. Observe the error in the UI and browser console.

Expected behavior

  • Performing UI operations (editing or deleting a row).
  • The SharedTree should not be left in an invalid state due to a React component error.
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions