1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Desktop: Fixes #12998: Fix error logged when rendering a non-existent resource (#13004)

This commit is contained in:
Henry Heino
2025-08-22 01:33:16 -07:00
committed by GitHub
parent 371f027a24
commit ae170e0aa0

View File

@@ -114,6 +114,7 @@ const Editor = (props: Props, ref: ForwardedRef<CodeMirrorControl>) => {
const url = parseResourceUrl(src);
if (!url.itemId) return null;
const item = await Resource.load(url.itemId);
if (!item) return null;
return `${getResourceBaseUrl()}/${resourceFilename(item)}`;
},
});