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/8664

Vanessa96530382f241
diff --git a/app/src/protyle/render/av/select.ts b/app/src/protyle/render/av/select.ts
index 6855d07d71..2f01cca44e 100644
--- a/app/src/protyle/render/av/select.ts
+++ b/app/src/protyle/render/av/select.ts
@@ -378,6 +378,17 @@ export const addSelectColAndCell = (protyle: IProtyle, data: IAVTable, options:
return true;
}
});
+ if (!cellData) {
+ cellData = {
+ color: "",
+ bgColor:"",
+ id: Lute.NewNodeID(),
+ value: {
+ mSelect: []
+ },
+ valueType: colData.type
+ }
+ }
const oldValue = Object.assign([], cellData.value.mSelect);
if (colData.type === "mSelect") {