From 9abf423e3f53a2f83f73c6adf5b789884e8afb31 Mon Sep 17 00:00:00 2001 From: Sascha Reuter Date: Thu, 27 Nov 2025 21:56:42 +1100 Subject: [PATCH] Fix creating items at root level The condition checked for id === "home" but the root list has id "Root". Also, when creating at root, the API expects parentid: "None" not "Root". --- src/document.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document.ts b/src/document.ts index 47a25d1..e1b1d07 100644 --- a/src/document.ts +++ b/src/document.ts @@ -413,7 +413,7 @@ export class List { this.itemIds.splice(priority, 0, newId); - const parentid = this.id === "home" ? ROOT : this.id; + const parentid = this.id === ROOT ? "None" : this.id; this.#companion.addOperation(this.data.treeId, { type: "create",