From 96530382f24147bd7f9af156d764fb855d9cd67d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 13 Jul 2023 09:20:02 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/8664 --- app/src/protyle/render/av/select.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/src/protyle/render/av/select.ts b/app/src/protyle/render/av/select.ts index 6855d07d7..2f01cca44 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") {