From bf915c04dbcffaddacf6be729236d74f1d52f6ef Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 8 Oct 2026 14:11:10 -0700 Subject: [PATCH] Fix "null" shown above import options Rows needing review passed a null to the DOM's native append(), which prints it as the text "null". Co-Authored-By: Claude Opus 5.5 --- web/static/js/import.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/static/js/import.js b/web/static/js/import.js index 74316ba..e7d457c 100644 --- a/web/static/js/import.js +++ b/web/static/js/import.js @@ -201,8 +201,9 @@ export function openImport({ list, cat, onListChange, onDone }) { e.open = true; rerender(e); }); - li.append(e.error ? h("p", { class: "small muted" }, e.error) : null, - h("div", { class: "import-opts" }, ...opts), again); + // Native append() would print a null as the text "null". + if (e.error) li.append(h("p", { class: "small muted" }, e.error)); + li.append(h("div", { class: "import-opts" }, ...opts), again); return li; }