mirror of
https://github.com/laurent22/joplin.git
synced 2025-03-23 21:09:30 +02:00
Check that resource could be loaded
This commit is contained in:
parent
949dbf45f1
commit
893462ae87
@ -175,6 +175,7 @@ class Note extends BaseItem {
|
|||||||
for (let i = 0; i < resourceIds.length; i++) {
|
for (let i = 0; i < resourceIds.length; i++) {
|
||||||
const id = resourceIds[i];
|
const id = resourceIds[i];
|
||||||
const resource = await Resource.load(id);
|
const resource = await Resource.load(id);
|
||||||
|
if (!resource) continue;
|
||||||
body = body.replace(new RegExp(':/' + id, 'gi'), toSystemSlashes(Resource.fullPath(resource)));
|
body = body.replace(new RegExp(':/' + id, 'gi'), toSystemSlashes(Resource.fullPath(resource)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user