address code review findings - data loss, race condition, broken features

This commit is contained in:
2026-02-15 19:33:25 +02:00
parent 0b70ee656f
commit 3369c34675
4 changed files with 38 additions and 14 deletions

View File

@@ -75,7 +75,10 @@ export function TopBar() {
<Button
variant="ghost"
size="sm"
onClick={() => setView({ type: "board-list" })}
onClick={() => {
useBoardStore.getState().closeBoard();
setView({ type: "board-list" });
}}
className="text-pylon-text-secondary hover:text-pylon-text"
>
<ArrowLeft className="size-4" />