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:
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)));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user