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 <noreply@anthropic.com>
This commit is contained in:
cdnutterandClaude Opus 5.5 committed 2026-10-08 14:11:10 -07:00
1 parent ec0b053eb3
commit bf915c04db
1 file changed
+3 -2
+3 -2
View File
@@ -201,8 +201,9 @@ export function openImport({ list, cat, onListChange, onDone }) {
e.open = true; e.open = true;
rerender(e); rerender(e);
}); });
li.append(e.error ? h("p", { class: "small muted" }, e.error) : null, // Native append() would print a null as the text "null".
h("div", { class: "import-opts" }, ...opts), again); if (e.error) li.append(h("p", { class: "small muted" }, e.error));
li.append(h("div", { class: "import-opts" }, ...opts), again);
return li; return li;
} }