You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
This commit is contained in:
@@ -114,6 +114,7 @@ const Editor = (props: Props, ref: ForwardedRef<CodeMirrorControl>) => {
|
|||||||
const url = parseResourceUrl(src);
|
const url = parseResourceUrl(src);
|
||||||
if (!url.itemId) return null;
|
if (!url.itemId) return null;
|
||||||
const item = await Resource.load(url.itemId);
|
const item = await Resource.load(url.itemId);
|
||||||
|
if (!item) return null;
|
||||||
return `${getResourceBaseUrl()}/${resourceFilename(item)}`;
|
return `${getResourceBaseUrl()}/${resourceFilename(item)}`;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user