From cf0e5f24bab83704c0df791283397f98b11e22a5 Mon Sep 17 00:00:00 2001 From: Muness Castle <931+muness@users.noreply.github.com> Date: Fri, 31 May 2024 13:50:38 -0400 Subject: [PATCH 1/2] Fix handling of undefined "ca-url" in frontmatter --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index bb07cab..39b7e02 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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; }); From 1b5337246ec387debbc7fa87cb11185bcc434258 Mon Sep 17 00:00:00 2001 From: Muness Castle <931+muness@users.noreply.github.com> Date: Fri, 31 May 2024 13:53:34 -0400 Subject: [PATCH 2/2] Update to version 1.1.2 --- manifest.json | 4 ++-- package.json | 2 +- versions.json | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index a4fce52..71b520b 100644 --- a/manifest.json +++ b/manifest.json @@ -1,8 +1,8 @@ { "id": "cloud-atlas", "name": "Cloud Atlas", - "version": "1.1.1", - "minAppVersion": "1.5.11", + "version": "1.1.2", + "minAppVersion": "1.5.12", "description": "Cloud Atlas provides a unique way to use content from your vault with ChatGPT. Reference a note and it (optionally) gets resolved and sent along. We also provide a Canvas interface for ChatGPT. Advanced features include chaining results and batching.", "author": "Cloud Atlas", "authorUrl": "https://cloud-atlas.ai", diff --git a/package.json b/package.json index 163e4a9..adc3261 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cloud-atlas", - "version": "1.1.1", + "version": "1.1.2", "description": "Interoperability between Obsidian and Cloud Atlas", "main": "dist/main.js", "scripts": { diff --git a/versions.json b/versions.json index 4e574dd..fe4e968 100644 --- a/versions.json +++ b/versions.json @@ -25,5 +25,6 @@ "0.9.0": "1.5.3", "0.9.1mobile": "1.5.3", "0.9.1": "1.5.3", - "1.1.1": "1.5.11" + "1.1.1": "1.5.11", + "1.1.2": "1.5.12" }