Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/15207

Vanessaadfab564138f
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index 9f9f346fc2..e744e9af92 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -187,11 +187,11 @@ const transformCellValue = (colType: TAVCol, value: IAVCellValue): IAVCellValue
}
} else if (["text", "block", "url", "phone", "email", "template"].includes(colType)) {
newValue[colType as "text"] = {
- content: getCellValueContent(value)
+ content: getCellValueContent(value).toString()
};
} else if (colType === "mSelect" || colType === "select") {
newValue.mSelect = [{
- content: getCellValueContent(value),
+ content: getCellValueContent(value).toString(),
color: "1"
}];
} else if (colType === "rollup") {
@@ -210,7 +210,7 @@ const transformCellValue = (colType: TAVCol, value: IAVCellValue): IAVCellValue
newValue.relation = {blockIDs: [], contents: []};
}
} else if (colType === "mAsset") {
- const content = getCellValueContent(value);
+ const content = getCellValueContent(value).toString();
newValue.mAsset = [{
type: Constants.SIYUAN_ASSETS_IMAGE.includes(pathPosix().extname(content).toLowerCase()) ? "image" : "file",
content,
@@ -799,7 +799,7 @@ export const updateCellsValue = (protyle: IProtyle, nodeElement: HTMLElement, va
});
}
}
- } else if (type === "mSelect") {
+ } else if (type === "mSelect" || type === "select") {
// 不传入为删除
if (typeof value === "string") {
const newMSelectValue: IAVCellSelectValue[] = [];