auto-cleanup implemented
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m12s

This commit is contained in:
2026-03-25 12:25:37 -05:00
parent 3876047dbe
commit 446d599ed2
3 changed files with 179 additions and 13 deletions
+9
View File
@@ -60,6 +60,15 @@ export const Layout: Component<LayoutProps> = (props) => {
}
});
createEffect(() => {
const noteId = selectedNoteId();
if (!noteId) return;
const noteExists = store.notes.some(note => note.id === noteId);
if (!noteExists) {
setSelectedNoteId(null);
}
});
return (
<div class="flex h-screen w-full min-w-0 bg-background overflow-hidden relative font-sans antialiased text-foreground">
{/* Desktop UI Container */}