diff --git a/manifest.json b/manifest.json index d6d6adf8..896d1f34 100644 --- a/manifest.json +++ b/manifest.json @@ -9,5 +9,5 @@ "fundingUrl": { "Buymeacoffee": "https://www.buymeacoffee.com/treywallis" }, - "version": "8.15.6" + "version": "8.15.7" } diff --git a/package.json b/package.json index 02fb0715..0622a125 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-dataloom", - "version": "8.15.6", + "version": "8.15.7", "description": "Weave together data from diverse sources into different views. Inspired by Excel Spreadsheets and Notion.so.", "main": "main.js", "scripts": { diff --git a/src/react/loom-app/option-bar/filter-menu/index.tsx b/src/react/loom-app/option-bar/filter-menu/index.tsx index 82253f8c..4c36fcf5 100644 --- a/src/react/loom-app/option-bar/filter-menu/index.tsx +++ b/src/react/loom-app/option-bar/filter-menu/index.tsx @@ -304,8 +304,8 @@ export default function FilterMenu({ onUpdate(id, { text }); } - function onCheckboxChange(id: string, text: string) { - onUpdate(id, { text }); + function onCheckboxChange(id: string, value: boolean) { + onUpdate(id, { value }); } function onDateFilterOptionChange(id: string, option: DateFilterOption) { @@ -436,10 +436,7 @@ export default function FilterMenu({ - onCheckboxChange( - id, - newValue.toString() - ) + onCheckboxChange(id, newValue) } /> ); diff --git a/src/shared/loom-state/validate-state.ts b/src/shared/loom-state/validate-state.ts index 7168b940..827bde1b 100644 --- a/src/shared/loom-state/validate-state.ts +++ b/src/shared/loom-state/validate-state.ts @@ -223,7 +223,7 @@ const CheckboxConditionUnion = Union( const CheckboxFilter = BaseFilter.extend({ type: Literal(CellType.CHECKBOX), condition: CheckboxConditionUnion, - text: String, + value: Boolean, }); const TagFilterConditionUnion = Union( diff --git a/versions.json b/versions.json index ab435b30..dd1c7151 100644 --- a/versions.json +++ b/versions.json @@ -155,5 +155,6 @@ "8.15.3": "1.4.0", "8.15.4": "1.4.0", "8.15.5": "1.4.0", - "8.15.6": "1.4.0" + "8.15.6": "1.4.0", + "8.15.7": "1.4.0" }