An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: 数据库勾选框过滤 bug
Vanessaea6c8a39ecfe
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.tsindex 21bdf3ff9c..d902801458 100644--- a/app/src/protyle/render/av/cell.ts+++ b/app/src/protyle/render/av/cell.ts@@ -61,6 +61,13 @@ const genCellValueByElement = (colType: TAVCol, cellElement: HTMLElement) => {type: colType,[colType]: JSON.parse(cellElement.querySelector(".av__celltext").getAttribute("data-value"))};+ } else if (colType === "checkbox") {+ cellValue = {+ type: colType,+ checkbox: {+ checked: cellElement.querySelector("use").getAttribute("xlink:href") === "#iconCheck" ? true : false+ }+ };}return cellValue;}@@ -113,6 +120,13 @@ export const genCellValue = (colType: TAVCol, value: string | any) => {isNotTime: true,}};+ } else if (colType === "checkbox") {+ cellValue = {+ type: colType,+ checkbox: {+ checked: value ? true : false+ }+ };}} else {if (colType === "mSelect" || colType === "select") {diff --git a/app/src/protyle/render/av/filter.ts b/app/src/protyle/render/av/filter.tsindex f317dbf09f..d760112036 100644--- a/app/src/protyle/render/av/filter.ts+++ b/app/src/protyle/render/av/filter.ts@@ -12,6 +12,9 @@ export const getDefaultOperatorByType = (type: TAVCol) => {if (["select", "number"].includes(type)) {return "=";}+ if (["checkbox"].includes(type)) {+ return "Is false";+ }if (["text", "mSelect", "url", "block", "email", "phone", "template"].includes(type)) {return "Contains";}