mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 17:47:44 -05:00
fix: create new note
This commit is contained in:
@@ -233,7 +233,7 @@
|
||||
{
|
||||
label: $i18n.t('Create a new note'),
|
||||
onClick: async () => {
|
||||
await goto(`/notes${query ? `?content=${query}` : ''}`);
|
||||
await goto(`/notes?content=${query}`);
|
||||
show = false;
|
||||
onClose();
|
||||
},
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user