Skip to content

Displaying bookmark tree incorrectly #3

@TopSGW

Description

@TopSGW

displayBookmarks(await sort_a_to_z(tree), bookmarkList);
The displayBookmarks function expects nodes (children array), but sort functions return roots (the full tree). The code passes tree (which is [{children: [...]}]) but then accesses .children internally

  • this works by accident at line 6 but is semantically wrong when returned from sort.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions