1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Mobile: Resolves #9377: Don't attach empty drawings when a user exits without saving (#9386)

This commit is contained in:
Henry Heino
2023-11-27 11:14:04 -08:00
committed by Laurent Cozic
parent 86b470359d
commit 0a75480a32
2 changed files with 45 additions and 25 deletions

View File

@ -157,10 +157,6 @@ export const createJsDrawEditor = (
// Load from a template if no initial data
if (svgData === '') {
await applyTemplateToEditor(editor, templateData);
// The editor expects to be saved initially (without
// unsaved changes). Save now.
saveNow();
} else {
await editor.loadFromSVG(svgData);
}