From f32bdd17ec9cc13f6dfe87ee6a79a6a6352e8bb5 Mon Sep 17 00:00:00 2001 From: zhixin Date: Tue, 5 Nov 2024 08:12:10 +0800 Subject: [PATCH] Fixed column is undefined bug in updateFieldGroup when using refreshOptions --- src/utils/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/index.js b/src/utils/index.js index 2ffbc8cbd..1fa5dab42 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -303,6 +303,10 @@ export default { const underColumns = allColumns.filter(col => col.fieldIndex === i) const column = underColumns[underColumns.length - 1] + if (!column) { + continue + } + if (underColumns.length > 1) { for (let j = 0; j < underColumns.length - 1; j++) { underColumns[j].visible = column.visible