Bladeren bron

:art: fix https://github.com/siyuan-note/siyuan/issues/11409

Vanessa 1 jaar geleden
bovenliggende
commit
5c761b6a17
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 3 0
      app/src/protyle/render/av/select.ts

+ 3 - 0
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,