Skip to content

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

:bug: Handle empty select fields in database panels https://github.com/siyuan-note/siyuan/issues/18388

Daniel267d1da66bca
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index f1e96dfa2d..47d3a64032 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -68,6 +68,8 @@ export const genCellValueByElement = (colType: TAVCol, cellElement: HTMLElement)
const cellValue = JSON.parse(decodeURIComponent(cellElement.dataset.cellValue)) as IAVCellValue;
if (colType === "mAsset" && !cellValue.mAsset) {
cellValue.mAsset = [];
+ } else if ((colType === "mSelect" || colType === "select") && !cellValue.mSelect) {
+ cellValue.mSelect = [];
}
return cellValue;
}