Skip to content

armgit / kanzo

Public Imported from GitHub
0

Self-hosted, sharable kanban for humans and agents. One 4.7 MB binary, 5 MB of RAM, 10 to 60 tokens per agent reply, starts in 3 ms, zero setup.

Fix "null" shown in the sidebar and the header

emanuele-em1a2dbc1fff53
diff --git a/src/app.js b/src/app.js
index d984abd..8d98ec9 100644
--- a/src/app.js
+++ b/src/app.js
@@ -241,7 +241,7 @@ function renderNav() {
el("span", { class: "count" }, String(count)));
$("#nav").replaceChildren(
link("all", "All projects", open),
- projects.length ? el("div", { class: "label" }, "Projects") : null,
+ ...(projects.length ? [el("div", { class: "label" }, "Projects")] : []),
...projects.map((p) => link(p.slug, p.name, p.open, projectColor(p.slug))),
);
}
@@ -264,7 +264,7 @@ function renderHeader() {
header.replaceChildren(
el("h1", {}, p.name),
el("span", { class: "sub mono" }, p.slug),
- p.repo ? el("span", { class: "sub" }, el("a", { href: `https://github.com/${p.repo}`, target: "_blank", rel: "noopener" }, p.repo)) : null,
+ ...(p.repo ? [el("span", { class: "sub" }, el("a", { href: `https://github.com/${p.repo}`, target: "_blank", rel: "noopener" }, p.repo))] : []),
);
}