From 0d2df838b084bf888d7a41015a068bc624d5fa8e Mon Sep 17 00:00:00 2001 From: Trey Wallis <40307803+trey-wallis@users.noreply.github.com> Date: Tue, 14 Nov 2023 23:21:16 -0700 Subject: [PATCH 1/2] fix: if type is null, default to text --- src/shared/frontmatter/index.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/shared/frontmatter/index.ts b/src/shared/frontmatter/index.ts index 8a65487a..4758bd23 100644 --- a/src/shared/frontmatter/index.ts +++ b/src/shared/frontmatter/index.ts @@ -25,10 +25,9 @@ export const deserializeFrontmatterForCell = ( const frontmatterValue = frontmatter[frontmatterKey]; if (!frontmatterValue) return null; - const assignedType = getAssignedPropertyType(app, frontmatterKey); - if (assignedType === null) { - throw new Error("Frontmatter type is null for " + frontmatterKey); - } + const assignedType = + getAssignedPropertyType(app, frontmatterKey) ?? + ObsidianPropertyType.TEXT; const { id, tags, type } = column; From 7b675f88ee019952dd75ddd225a1372a7b735abd Mon Sep 17 00:00:00 2001 From: Trey Wallis <40307803+trey-wallis@users.noreply.github.com> Date: Tue, 14 Nov 2023 23:21:42 -0700 Subject: [PATCH 2/2] chore: bump version --- manifest.json | 2 +- package.json | 2 +- versions.json | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 5425bcc3..570ee667 100644 --- a/manifest.json +++ b/manifest.json @@ -9,5 +9,5 @@ "fundingUrl": { "Buymeacoffee": "https://www.buymeacoffee.com/treywallis" }, - "version": "8.12.0" + "version": "8.12.1" } diff --git a/package.json b/package.json index 2e4b2f2d..d420e3e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-dataloom", - "version": "8.12.0", + "version": "8.12.1", "description": "Weave together data from diverse sources into a cohesive table view. Inspired by Excel Spreadsheets and Notion.so.", "main": "main.js", "scripts": { diff --git a/versions.json b/versions.json index 89b0418b..72f9e840 100644 --- a/versions.json +++ b/versions.json @@ -141,5 +141,6 @@ "8.11.1": "1.2.0", "8.11.2": "1.2.0", "8.11.3": "1.2.0", - "8.12.0": "1.2.0" + "8.12.0": "1.2.0", + "8.12.1": "1.2.0" }