From adfab564138ff9c21e26f3fde39ead900c93d354 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 3 Jul 2025 11:14:40 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/15207 --- app/src/protyle/render/av/cell.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index 9f9f346fc..e744e9af9 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[] = [];