From 5c761b6a17efb0b3756cf95042f97a8625920dc7 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 19 May 2024 23:14:36 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/11409 --- app/src/protyle/render/av/select.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/protyle/render/av/select.ts b/app/src/protyle/render/av/select.ts index 269e915c4..5ac5ce6d9 100644 --- a/app/src/protyle/render/av/select.ts +++ b/app/src/protyle/render/av/select.ts @@ -570,6 +570,9 @@ export const mergeAddOption = (column: IAVColumn, cellValue: IAVCellValue, avID: const doOperations: IOperation[] = []; const undoOperations: IOperation[] = []; cellValue.mSelect.forEach((item: IAVCellSelectValue) => { + if (!column.options) { + column.options = []; + } const needAdd = column.options.find((option: { name: string, color: string,