mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Merge pull request #206 from TriliumNext/bugfix/image_upload_regression
server: Fix regression in uploading images
This commit is contained in:
commit
f40257b591
@ -1644,10 +1644,7 @@ class BNote extends AbstractBeccaEntity<BNote> {
|
|||||||
position
|
position
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!content) {
|
content = content || "";
|
||||||
throw new Error("Attempted to save an attachment with no content.");
|
|
||||||
}
|
|
||||||
|
|
||||||
attachment.setContent(content, {forceSave: true});
|
attachment.setContent(content, {forceSave: true});
|
||||||
|
|
||||||
return attachment;
|
return attachment;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user