Skip to content

Commit

Permalink
Merge pull request #138 from cloud-atlas-ai/absent-ca-url-is-valid
Browse files Browse the repository at this point in the history
Fix handling of undefined "ca-url" in frontmatter
  • Loading branch information
muness authored May 31, 2024
2 parents 5e0e427 + cf0e5f2 commit db3b7be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ export default class CloudAtlasPlugin extends Plugin {

if (metadata?.frontmatter) {
const frontmatter = metadata?.frontmatter;
const links = frontmatter["ca-url"];
links.map((link: string) => {
const links = frontmatter["ca-url"];//handle ca-url being undefined
links && links.map((link: string) => {
additionalContext[link] = link;
});

Expand Down

0 comments on commit db3b7be

Please sign in to comment.