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; }