mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-24 02:05:23 +00:00
fix: fix PDF export of NoteEditor
This commit is contained in:
parent
e48246ad43
commit
d6048bcfc3
1 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@
|
|||
WEBUI_NAME
|
||||
} from '$lib/stores';
|
||||
|
||||
import { downloadPdf } from './utils';
|
||||
import { downloadNotePdf } from '$lib/utils/pdf';
|
||||
|
||||
import Controls from './NoteEditor/Controls.svelte';
|
||||
import Chat from './NoteEditor/Chat.svelte';
|
||||
|
|
@ -568,7 +568,7 @@ ${content}
|
|||
saveAs(blob, `${note.title}.md`);
|
||||
} else if (type === 'pdf') {
|
||||
try {
|
||||
await downloadPdf(note);
|
||||
await downloadNotePdf(note);
|
||||
} catch (error) {
|
||||
toast.error(`${error}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue