fix: create new note

This commit is contained in:
Timothy Jaeryang Baek
2025-10-21 18:21:00 -04:00
parent 6593b7ccc8
commit 23ea754061
2 changed files with 4 additions and 6 deletions

View File

@@ -303,12 +303,10 @@
});
onMount(async () => {
if ($page.url.searchParams.get('content')) {
if ($page.url.searchParams.get('content') !== null) {
const content = $page.url.searchParams.get('content') ?? '';
if (content) {
createNoteHandler(content);
return;
}
createNoteHandler(content);
return;
}
await init();