1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-03-20 20:55:18 +02:00

Check that resource could be loaded

This commit is contained in:
Laurent Cozic 2019-01-20 16:28:10 +00:00
parent 949dbf45f1
commit 893462ae87

@ -175,6 +175,7 @@ class Note extends BaseItem {
for (let i = 0; i < resourceIds.length; i++) {
const id = resourceIds[i];
const resource = await Resource.load(id);
if (!resource) continue;
body = body.replace(new RegExp(':/' + id, 'gi'), toSystemSlashes(Resource.fullPath(resource)));
}