Skip to content

Root-level node creation fails - wrong parentid sent #11

@sreuter

Description

@sreuter

I noticed that creating nodes at the root level doesn't work. In document.ts line 321, the code checks this.id === "home" but the root ID is actually "Root". It also sends ROOT as the parentid, but Workflowy expects "None" for root-level items.

Current code:

const parentid = this.id === "home" ? ROOT : this.id;

Should be:

const parentid = this.id === ROOT ? "None" : this.id;

Fix: #10

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