We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33f2f54 commit c434056Copy full SHA for c434056
src/utils.ts
@@ -7,7 +7,7 @@ export const getImageSrc = (activeFilePath: string, plugin: FrontmatterImagePlug
7
8
let rawValue = plugin.settings.imageKeys
9
.map(key => frontmatter[key])
10
- .find(value => !!value);
+ .find((value): value is string => typeof value === "string" && !!value.trim());
11
12
if (!rawValue) return;
13
0 commit comments